glx-multithread-texture: Avoid front-buffer rendering.
[piglit.git] / tests / glslparsertest / shaders / preprocess7.frag
blob7e09a60e97271a5d52c53ee02d8ca2c1ba813212
1 // [config]
2 // expect_result: fail
3 // glsl_version: 1.10
4 //
5 // [end config]
7 // testing for char constants in #if and #elif
8 // Also checking whether reserved words can be redefined.
10 #define t1 c
11 #define t2 d
12 #define asm a
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
22  #ifndef t1
23    #define t7 7
24  #elif (t2==d)
25   #define t6 6
26  #endif
28  #if (t2=='d')
29   #define half 5
30  #else
31   #define half 8
32  #endif
34  #ifdef t22
35   #define x 5
36  #endif
38  void main(void)
39   {
40    int sum =0,a=9;
41    
42    sum = half + sum;
43    sum = asm + a;
44    
45   }