Home | History | Annotate | Download | only in Preprocessor
      1 /* RUN: %clang_cc1 -E -verify %s
      2  */
      3 
      4 /* expected-error@+1 {{macro name missing}} */
      5 #ifdef
      6 #endif
      7 
      8 /* expected-error@+1 {{macro name must be an identifier}} */
      9 #ifdef !
     10 #endif
     11 
     12 /* expected-error@+1 {{macro name missing}} */
     13 #if defined
     14 #endif
     15 
     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) x
     19 #if f(2
     20 #endif
     21 
     22 int x;
     23