aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/malloc-protoype.c
blob: f056f0f2855d5ff3dc647ab0e20d4f5ff8d95e74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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);
}