clang/test/C/C99/n636.c
raw| 1 | // RUN: %clang_cc1 -verify %s |
| 2 | // RUN: %clang_cc1 -verify=c2x -std=c2x %s |
| 3 | |
| 4 | /* WG14 N636: yes |
| 5 | * remove implicit function declaration |
| 6 | */ |
| 7 | |
| 8 | void test(void) { |
| 9 | frobble(); // expected-error {{call to undeclared function 'frobble'; ISO C99 and later do not support implicit function declarations}} \ |
| 10 | c2x-error {{undeclared identifier 'frobble'}} |
| 11 | } |
| 12 |