llvm-for-llvmta/tools/clang/test/Analysis/malloc-protoype.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

18 lines
266 B
C

// RUN: %clang_analyze_cc1 -w -analyzer-checker=core,unix.Malloc -verify %s
// expected-no-diagnostics
// Test that strange prototypes doesn't crash the analyzer
void malloc(int i);
void valloc(int i);
void test1()
{
malloc(1);
}
void test2()
{
valloc(1);
}