aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/if_warning.c
blob: acb6d5ea422de92e2eba40c01f79ce7d8c7220d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang-cc %s -Eonly -Werror=undef -verify

extern int x;

#if foo   // expected-error {{'foo' is not defined, evaluates to 0}}
#endif

#ifdef foo
#endif

#if defined(foo)
#endif