cmake: add workaround for CMP0148
[piglit.git] / examples / glsl_parser_test / bit-logic-assign.frag
blob78eff0f4da7129526ef0cdaf0d4e597226b914d1
1 // The config section below is required.
2 //
3 // [config]
4 // # The config section may contain comments.
5 // expect_result: pass
6 // glsl_version: 1.30
7 // [end config]
8 //
9 // Description: bit-logic assignment ops with argument type (int, int)
11 // From page 50 (page 56 of PDF) of the GLSL 1.30 spec:
12 //     "The operands must be of type signed or unsigned integers or integer
13 //     vectors."
15 #version 130
16 void main() {
17     int x = 0;
18     x &= 1;
19     x |= 1;
20     x ^= 1;