| Daniel Dunbar | ffd408a | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
| Douglas Gregor | 72e9217 | 2009-02-14 00:37:42 +0000 | [diff] [blame] | 2 | |
| 3 | void f() { | ||||
| 4 | void *p = malloc(sizeof(int) * 10); // expected-error{{no matching function for call to 'malloc'}} | ||||
| 5 | } | ||||
| 6 | |||||
| 7 | int malloc(double); | ||||