]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/unary_operators.glsl
Rearrange postprocessor creation code in SequenceBuilder
[libs/gl.git] / tests / glsl / unary_operators.glsl
1 #pragma MSP stage(vertex)
2 void main()
3 {
4         int i = 0;
5         i = -~i;
6         ++i;
7         --i;
8         i++;
9         i--;
10         bool b = false;
11         b = !b;
12         int arr[3];
13         ++arr[0];
14 }
15
16 /* Expected output: vertex
17 void main()
18 {
19         int i;
20         i = 1;
21         ++i;
22         --i;
23         i++;
24         i--;
25         int arr_0;
26         ++arr_0;
27 }
28 */