18 lines · c
1// RUN: %clang_analyze_cc1 -w -analyzer-checker=core,unix.Malloc -verify %s2// expected-no-diagnostics3 4// Test that strange prototypes doesn't crash the analyzer5 6void malloc(int i);7void valloc(int i);8 9void test1(void)10{11 malloc(1);12}13 14void test2(void)15{16 valloc(1);17}18