blob: f056f0f2855d5ff3dc647ab0e20d4f5ff8d95e74 [file] [log] [blame]
Stephen Hines176edba2014-12-01 14:53:08 -08001// RUN: %clang_cc1 -w -analyze -analyzer-checker=core,unix.Malloc -verify %s
2// expected-no-diagnostics
3
4// Test that strange prototypes doesn't crash the analyzer
5
6void malloc(int i);
7void valloc(int i);
8
9void test1()
10{
11 malloc(1);
12}
13
14void test2()
15{
16 valloc(1);
17}