repo.or.cz
/
vkd3d.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vkd3d-shader/hlsl: Use a block in hlsl_normalize_binary_exprs().
[vkd3d.git]
/
tests
/
preproc-ifdef.shader_test
blob
b31aeb9a5dfa904b94d0310833932cd2274de7a0
1
[preproc]
2
#define KEY
3
#ifdef KEY
4
pass
5
#endif
6
7
[preproc]
8
#define KEY
9
#if defined(KEY)
10
pass
11
#endif
12
13
[preproc]
14
#define KEY
15
#if defined KEY
16
pass
17
#endif
18
19
[preproc]
20
#ifndef KEY
21
pass
22
#endif
23
24
[preproc]
25
#if !defined(KEY)
26
pass
27
#endif
28
29
[preproc]
30
#define KEY
31
#ifndef KEY
32
fail
33
#else
34
pass
35
#endif
36
37
[preproc]
38
#ifdef KEY
39
fail
40
#else
41
pass
42
#endif
43
44
[preproc]
45
#define KEY(a, b)
46
#ifdef KEY
47
pass
48
#endif
49
50
[preproc]
51
#ifdef KEY
52
fail
53
#endif
54
#define KEY
55
pass
56
57
[preproc]
58
#define KEY 0
59
#ifdef KEY
60
pass
61
#endif
62
63
[preproc]
64
#define KEY
65
#undef KEY
66
#ifndef KEY
67
pass
68
#endif
69
70
[preproc]
71
#if KEY
72
fail
73
#else
74
pass
75
#endif
76
77
[preproc]
78
#if KEY == 0
79
pass
80
#else
81
fail
82
#endif
83
84
[preproc]
85
#if KEY == 1
86
fail
87
#else
88
pass
89
#endif