teak-llvm/clang/test/Lexer/Inputs/bad-header-guard-defined.h
Richard Smith 089ee1554c PR16339: Don't produce a diagnostic pointing at the whitespace between a '#if'
and a '!defined(X)' if we find a broken header guard. This is suboptimal; we
should point the diagnostic at the 'X' token not the 'if' token, but it fixes
the crash.

llvm-svn: 184054
2013-06-16 05:05:39 +00:00

5 lines
44 B
C

#if !defined(foo)
#define goo
int n;
#endif