teak-llvm/clang/test/Preprocessor/annotate_in_macro_arg.c
David Majnemer d8dee1f54b Lex: Don't call getIdentifierInfo on annotation tokens
These calls are usually guarded by checks for isAnnotation() but it
looks like we missed a spot.  This would cause the included test to
crash clang.

llvm-svn: 232616
2015-03-18 07:53:20 +00:00

9 lines
239 B
C

// RUN: %clang_cc1 -verify %s
#define M1() // expected-note{{macro 'M1' defined here}}
M1( // expected-error{{unterminated function-like macro invocation}}
#if M1() // expected-error{{expected value in expression}}
#endif
#pragma pack()