summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c
blob: f46cce4e60a47e3597fca6d58202316df661ed1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#define D1
#define D2

#define result success

#ifdef U1
#ifdef U2
#undef result
#define result failure
#endif
#endif
result

#ifndef D1
#ifndef D2
#undef result
#define result failure
#endif
#endif
result

#undef result
#define result failure
#ifdef D1
#ifdef D2
#undef result
#define result success
#endif
#endif
result

#undef result
#define result failure
#ifndef U1
#ifndef U2
#undef result
#define result success
#endif
#endif
result