[Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (#113470)
[llvm-project.git] / clang / test / Analysis / malloc-protoype.c
blob5f6d9fcb1c82edf8623810ae56ece19ecdd17ce8
1 // RUN: %clang_analyze_cc1 -w -analyzer-checker=core,unix.Malloc -verify %s
2 // expected-no-diagnostics
4 // Test that strange prototypes doesn't crash the analyzer
6 void malloc(int i);
7 void valloc(int i);
9 void test1(void)
11 malloc(1);
14 void test2(void)
16 valloc(1);