llvm-project/clang/test/Lexer/Inputs/out-of-order-define.h
Richard Trieu 33a4b3db0d Introducing -Wheader-guard, a warning that checks header guards actually work
properly.  This warning checks that the #ifndef and #define directives at
the beginning of a header refer to the same macro name.  Includes a fix-it
hint to correct the header guard.

llvm-svn: 183867
2013-06-12 21:20:57 +00:00

8 lines
75 B
C

#ifndef out_of_order
#define something_else
#define out_of_order
#endif