Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Douglas Gregor | 0f4330c | 2009-02-14 00:37:42 +0000 | [diff] [blame] | 2 | |
3 | void f() { | ||||
John McCall | 578b69b | 2009-12-16 08:11:27 +0000 | [diff] [blame] | 4 | void *p = malloc(sizeof(int) * 10); // expected-error{{use of undeclared identifier 'malloc'}} |
Douglas Gregor | 0f4330c | 2009-02-14 00:37:42 +0000 | [diff] [blame] | 5 | } |
6 | |||||
7 | int malloc(double); |