repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
glslparsertest
/
shaders
/
preprocess7.frag
blob
52ceaa7233417be2fb68c55ce2a64a489fdd48dc
1
// testing for char constants in #if and #elif
\r
2
// Also checking whether reserved words can be redefined.
\r
3
\r
4
#define t1 c
\r
5
#define t2 d
\r
6
#define asm a
\r
7
\r
8
#if(t1==c)
\r
9
#define t3 3
\r
10
#elif(t1==d)
\r
11
#define t4 4
\r
12
#elif(t2==c)
\r
13
#define t5 5
\r
14
#endif
\r
15
\r
16
#ifndef t1
\r
17
#define t7 7
\r
18
#elif (t2==d)
\r
19
#define t6 6
\r
20
#endif
\r
21
\r
22
#if (t2=='d')
\r
23
#define half 5
\r
24
#else
\r
25
#define half 8
\r
26
#endif
\r
27
\r
28
#ifdef t22
\r
29
#define x 5
\r
30
#endif
\r
31
\r
32
void main(void)
\r
33
{
\r
34
int sum =0,a=9;
\r
35
\r
36
sum = half + sum;
\r
37
sum = asm + a;
\r
38
\r
39
}
\r
40
\r