Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
/
.
/
test
/
Preprocessor
/
if_warning.c
blob: f07c88707e76abb20bd7fca6c15e68cda4886fc7 [
file
] [
log
] [
blame
]
// RUN: clang-cc %s -E -Wundef -Werror 2>&1 | grep error | count 1 &&
// RUN: clang-cc %s -E -Werror 2>&1 | not grep error
#if foo // Should generate an warning
#endif
#ifdef
foo
#endif
#if defined(foo)
#endif