xref: /aosp_15_r20/external/clang/test/Analysis/malloc-protoype.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -w -analyze -analyzer-checker=core,unix.Malloc -verify %s
2*67e74705SXin Li // expected-no-diagnostics
3*67e74705SXin Li 
4*67e74705SXin Li // Test that strange prototypes doesn't crash the analyzer
5*67e74705SXin Li 
6*67e74705SXin Li void malloc(int i);
7*67e74705SXin Li void valloc(int i);
8*67e74705SXin Li 
test1()9*67e74705SXin Li void test1()
10*67e74705SXin Li {
11*67e74705SXin Li   malloc(1);
12*67e74705SXin Li }
13*67e74705SXin Li 
test2()14*67e74705SXin Li void test2()
15*67e74705SXin Li {
16*67e74705SXin Li   valloc(1);
17*67e74705SXin Li }
18