summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp/tests/050-if-defined.c
blob: 34f0f95140eb48be1a8011431ffb1219f2dc2dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#if defined foo
failure_1
#else
success_1
#endif
#define foo
#if defined foo
success_2
#else
failure_2
#endif
#undef foo
#if defined foo
failure_3
#else
success_3
#endif