1group invalid_declarations "Invalid declarations"
2	case attribute_in_vertex_main
3		expect compile_fail
4		vertex ""
5			void main()
6			{
7				attribute mediump float val;
8				gl_Position = vec4(1.0);
9			}
10		""
11		fragment ""
12			void main()
13			{
14				gl_FragColor = vec4(1.0);
15			}
16		""
17	end
18
19	case attribute_in_fragment
20		expect compile_fail
21		vertex ""
22			void main()
23			{
24				gl_Position = vec4(1.0);
25			}
26		""
27		fragment ""
28			attribute mediump float val;
29			void main()
30			{
31				gl_FragColor = vec4(1.0);
32			}
33		""
34	end
35
36	case uniform_in_vertex_main
37		expect compile_fail
38		vertex ""
39			void main()
40			{
41				uniform mediump float val;
42				gl_Position = vec4(1.0);
43			}
44		""
45		fragment ""
46			void main()
47			{
48				gl_FragColor = vec4(1.0);
49			}
50		""
51	end
52
53	case uniform_in_fragment_main
54		expect compile_fail
55		vertex ""
56			void main()
57			{
58				gl_Position = vec4(1.0);
59			}
60		""
61		fragment ""
62			void main()
63			{
64				uniform mediump float val;
65				gl_FragColor = vec4(1.0);
66			}
67		""
68	end
69
70	case varying_in_vertex_main
71		expect compile_fail
72		vertex ""
73			void main()
74			{
75				varying mediump float val;
76				gl_Position = vec4(1.0);
77			}
78		""
79		fragment ""
80			varying mediump float val;
81			void main()
82			{
83				gl_FragColor = vec4(1.0);
84			}
85		""
86	end
87
88	case varying_in_fragment_main
89		expect compile_fail
90		vertex ""
91			varying mediump float val;
92			void main()
93			{
94				gl_Position = vec4(1.0);
95			}
96		""
97		fragment ""
98			void main()
99			{
100				varying mediump float val;
101				gl_FragColor = vec4(1.0);
102			}
103		""
104	end
105
106	case invariant_attribute
107		expect compile_fail
108		vertex ""
109			invariant attribute mediump float val;
110			void main()
111			{
112				gl_Position = vec4(1.0);
113			}
114		""
115		fragment ""
116			void main()
117			{
118				gl_FragColor = vec4(1.0);
119			}
120		""
121	end
122
123	case invariant_uniform
124		expect compile_fail
125		vertex ""
126			invariant uniform mediump float val;
127			void main()
128			{
129				gl_Position = vec4(1.0);
130			}
131		""
132		fragment ""
133			void main()
134			{
135				gl_FragColor = vec4(1.0);
136			}
137		""
138	end
139
140end # invalid_declarations
141