1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -w -analyze -analyzer-checker=core,unix.Malloc -verify %s 2*0a6a1f1dSLionel Sambuc // expected-no-diagnostics 3*0a6a1f1dSLionel Sambuc 4*0a6a1f1dSLionel Sambuc // Test that strange prototypes doesn't crash the analyzer 5*0a6a1f1dSLionel Sambuc 6*0a6a1f1dSLionel Sambuc void malloc(int i); 7*0a6a1f1dSLionel Sambuc void valloc(int i); 8*0a6a1f1dSLionel Sambuc test1()9*0a6a1f1dSLionel Sambucvoid test1() 10*0a6a1f1dSLionel Sambuc { 11*0a6a1f1dSLionel Sambuc malloc(1); 12*0a6a1f1dSLionel Sambuc } 13*0a6a1f1dSLionel Sambuc test2()14*0a6a1f1dSLionel Sambucvoid test2() 15*0a6a1f1dSLionel Sambuc { 16*0a6a1f1dSLionel Sambuc valloc(1); 17*0a6a1f1dSLionel Sambuc } 18