• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2group invalid "Invalid constructions"
3
4	case constructor_c_style1
5		version 310 es
6		expect compile_fail
7
8		both ""
9			#version 310 es
10			precision mediump float;
11			${DECLARATIONS}
12
13			void main ()
14			{
15				float a[];
16				a = float[3] { 1.0, 2.0, 3.0 };
17
18				${POSITION_FRAG_COLOR} = vec4(1.0);
19			}
20		""
21	end
22
23	case constructor_c_style2
24		version 310 es
25		expect compile_fail
26
27		both ""
28			#version 310 es
29			precision mediump float;
30			${DECLARATIONS}
31
32			void main ()
33			{
34				float a[5] = { 1.0, 2.0, 3.0 };
35
36				${POSITION_FRAG_COLOR} = vec4(1.0);
37			}
38		""
39	end
40
41	case constructor_c_style3
42		version 310 es
43		expect compile_fail
44
45		both ""
46			#version 310 es
47			precision mediump float;
48			${DECLARATIONS}
49
50			void main ()
51			{
52				float a[] = float[3] { 1.0, 2.0, 3.0 };
53
54				${POSITION_FRAG_COLOR} = vec4(1.0);
55			}
56		""
57	end
58
59	case constructor_c_style4
60		version 310 es
61		expect compile_fail
62
63		both ""
64			#version 310 es
65			precision mediump float;
66			${DECLARATIONS}
67
68			void main ()
69			{
70				float a[3] = { 1.0, 2.0, 3.0 };
71
72				${POSITION_FRAG_COLOR} = vec4(1.0);
73			}
74		""
75	end
76
77end # invalid
78