blob: 0b8c0f9f28df7b6cb78837a58058618f1a83464c [file] [log] [blame]
Dominic Chen184c6242017-03-03 18:02:02 +00001// RUN: %clang_analyze_cc1 -w -analyzer-checker=core,unix.Malloc -verify %s
Jordan Rosef69e65f2014-09-05 16:33:51 +00002// 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}