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