brintos

brintos / llvm-project-archived public Read only

0
0
Text · 360 B · fb69b28 Raw
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