Files
llvm-project/clang/test/Preprocessor/if_warning.c
Chris Lattner 7238225c28 add support for -Wundef.
llvm-svn: 46274
2008-01-23 17:19:46 +00:00

13 lines
211 B
C

// RUN: clang %s -E -Wundef -Werror 2>&1 | grep error | count 1 &&
// RUN: clang %s -E -Werror 2>&1 | not grep error
#if foo // Should generate an warning
#endif
#ifdef foo
#endif
#if defined(foo)
#endif