13 lines · c
1// RUN: %clang_cc1 -verify %s2// RUN: %clang_cc1 -verify=c2x -std=c2x %s3 4/* WG14 N636: yes5 * remove implicit function declaration6 */7 8void 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 13