2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-02-14 08:37:42 +08:00
|
|
|
|
|
|
|
void f() {
|
2009-12-16 16:11:27 +08:00
|
|
|
void *p = malloc(sizeof(int) * 10); // expected-error{{use of undeclared identifier 'malloc'}}
|
2009-02-14 08:37:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int malloc(double);
|