brintos

brintos / llvm-project-archived public Read only

0
0
Text · 787 B · 07d92a6 Raw
35 lines · c
1/* RUN: %clang_cc1 -E -verify %s2 */3 4/* expected-error@+1 {{macro name missing}} */5#ifdef6#endif7 8/* expected-error@+1 {{macro name must be an identifier}} */9#ifdef !10#endif11 12/* expected-error@+1 {{macro name missing}} */13#if defined14#endif15 16/* PR1936 */17/* expected-error@+2 {{unterminated function-like macro invocation}} expected-error@+2 {{expected value in expression}} expected-note@+1 {{macro 'f' defined here}} */18#define f(x) x19#if f(220#endif21 22/* expected-error@+3 {{macro name missing}} */23/* expected-warning@+2 {{use of a '#elifdef' directive is a C23 extension}} */24#ifdef FOO25#elifdef26#endif27 28/* expected-error@+3 {{macro name must be an identifier}} */29/* expected-warning@+2 {{use of a '#elifdef' directive is a C23 extension}} */30#ifdef FOO31#elifdef !32#endif33 34int x;35