bolt/deps/llvm-18.1.8/clang/test/Analysis/malloc-protoype.c

18 lines
274 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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(void)
{
malloc(1);
}
void test2(void)
{
valloc(1);
}