mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-30 00:38:54 -04:00
18 lines
267 B
C
18 lines
267 B
C
// RUN: %clang_cc1 -w -analyze -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);
|
|
}
|