John Kessenich | 77d908a | 2013-11-09 00:18:22 +0000 | [diff] [blame] | 1 | // okay
|
John Kessenich | 816e9bc | 2013-10-04 21:09:36 +0000 | [diff] [blame] | 2 | #version 100
|
John Kessenich | 816e9bc | 2013-10-04 21:09:36 +0000 | [diff] [blame] | 3 | int a[3] = { 2, 3, 4, }; // ERROR
|
| 4 |
|
| 5 | int uint;
|
| 6 |
|
| 7 | attribute vec4 v[3]; // ERROR
|
| 8 |
|
| 9 | float f = 2; // ERROR
|
| 10 |
|
| 11 | uniform block { // ERROR
|
| 12 | int x;
|
| 13 | };
|
| 14 |
|
| 15 | void foo(float);
|
| 16 |
|
| 17 | void main()
|
| 18 | {
|
| 19 | foo(3); // ERROR
|
| 20 | int s = 1 << 4; // ERROR
|
| 21 | s = 16 >> 2; // ERROR
|
| 22 | if (a == a); // ERROR
|
| 23 | int b, c;
|
| 24 | b = c & 4; // ERROR
|
| 25 | b = c % 4; // ERROR
|
| 26 | b = c | 4; // ERROR
|
| 27 | b >>= 2; // ERROR
|
| 28 | b <<= 2; // ERROR
|
| 29 | b %= 3; // ERROR
|
| 30 |
|
| 31 | struct S {
|
| 32 | float f;
|
| 33 | float a[10];
|
| 34 | } s1, s2;
|
| 35 |
|
| 36 | s1 = s2; // ERROR
|
| 37 | if (s1 == s2); // ERROR
|
| 38 | if (s1 != s2); // ERROR
|
| 39 |
|
| 40 | switch(b) { // ERROR
|
| 41 | }
|
| 42 | }
|
| 43 |
|
| 44 | invariant gl_FragColor;
|
| 45 | float fa[]; // ERROR
|
John Kessenich | 01c22af | 2013-11-08 07:13:18 +0000 | [diff] [blame] | 46 | float f13;
|
| 47 | invariant f13; // ERROR
|
| 48 | struct S { int a; };
|
| 49 | invariant S;
|
| 50 | invariant float fi; // ERROR
|
| 51 | varying vec4 av;
|
| 52 | invariant av; // okay in v100
|
| 53 |
|
| 54 | void foo10()
|
| 55 | {
|
| 56 | invariant f; // ERROR
|
| 57 | invariant float f2; // ERROR
|
| 58 | float f3;
|
| 59 | invariant f3; // ERROR
|
| 60 | }
|
| 61 |
|
| 62 | uniform vec2 uv2;
|
| 63 | invariant uv2; // ERROR
|
| 64 | invariant uniform vec3 uv3; // ERROR
|
| 65 |
|
| 66 | sampler2D glob2D; // ERROR
|
| 67 | void f11(sampler2D p2d)
|
| 68 | {
|
| 69 | sampler2D v2D; // ERROR
|
| 70 | }
|
| 71 | varying sampler2D vary2D; // ERROR
|
| 72 |
|
| 73 | struct sp {
|
| 74 | highp float f;
|
| 75 | in float g; // ERROR
|
| 76 | uniform float h; // ERROR
|
| 77 | invariant float i; // ERROR
|
| 78 | };
|