• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1group declarations "Declarations"
2
3	case missing_variable_name
4		version 330
5		both ""
6			#version 330
7			${DECLARATIONS}
8			void main()
9			{
10				int;
11				${OUTPUT}
12			}
13		""
14	end
15
16	case comma_preceding_variable
17		version 330
18		both ""
19			#version 330
20			${DECLARATIONS}
21			void main()
22			{
23				int ,a;
24				${OUTPUT}
25			}
26		""
27	end
28
29	case comma_following_variable
30		version 330
31		expect compile_fail
32		both ""
33			#version 330
34			${DECLARATIONS}
35			void main()
36			{
37				int a,;
38				${OUTPUT}
39			}
40		""
41	end
42
43	case struct_missing_attribute_name
44		version 330
45		expect compile_fail
46		both ""
47			#version 330
48			${DECLARATIONS}
49			void main()
50			{
51				struct Data { int; };
52				${OUTPUT}
53			}
54		""
55	end
56
57	case struct_comma_preceding_attribute
58		version 330
59		expect compile_fail
60		both ""
61			#version 330
62			${DECLARATIONS}
63			void main()
64			{
65				struct Data { int ,a; };
66				${OUTPUT}
67			}
68		""
69	end
70
71end # invalid_declarations
72