Lines Matching full:main
49 "void main() { x = vec2(1); }", in DEF_TEST()
55 "void main() { int x = foo(1); }", in DEF_TEST()
61 "void main() { float x = sin(1, 2); }", in DEF_TEST()
64 "void main() { float x = sin(true); }", in DEF_TEST()
67 "void main() { float x = sin(1); }"); in DEF_TEST()
73 "void main() { float x = foo(1, 2); }", in DEF_TEST()
80 "void main() { float x = foo(true); }", in DEF_TEST()
86 "void main() { if (3) { } }", in DEF_TEST()
92 "void main() { do { } while (vec2(1)); }", in DEF_TEST()
98 "void main() { while (vec3(1)) { } }", in DEF_TEST()
104 "void main() { for (int x = 0; x; x++) { } }", in DEF_TEST()
110 "void main() { vec2 x = vec2(1.0, false); }", in DEF_TEST()
113 "void main() { vec2 x = vec2(bvec2(false)); }", in DEF_TEST()
116 "void main() { bvec2 x = bvec2(vec2(1)); }", in DEF_TEST()
119 "void main() { bool x = bool(1.0); }", in DEF_TEST()
122 "struct foo { int x; }; void main() { foo x = foo(5); }", in DEF_TEST()
125 "struct foo { int x; } foo; void main() { float x = float(foo); }", in DEF_TEST()
128 "struct foo { int x; } foo; void main() { vec2 x = vec2(foo); }", in DEF_TEST()
134 "void main() { vec3 x = vec3(1.0, 2.0); }", in DEF_TEST()
138 "void main() { vec3 x = vec3(1.0, 2.0, 3.0, 4.0); }", in DEF_TEST()
145 "void main() { float x = 1; float y = x.y; }", in DEF_TEST()
151 "void main() { mat2 x = mat2(1); float y = x.y; }", in DEF_TEST()
157 "void main() { vec3 test = vec2(1).xyz; }", in DEF_TEST()
163 "void main() { vec4 test = vec2(1).xxxxx; }", in DEF_TEST()
169 "void main() { vec4 test = vec4(1); test.xyyz = vec4(1); }", in DEF_TEST()
175 "void main() { int x = 1.0; }", in DEF_TEST()
178 "void main() { int x; x = 1.0; }", in DEF_TEST()
181 "void main() { vec3 x = vec3(0); x *= 1.0; }"); in DEF_TEST()
183 "void main() { ivec3 x = ivec3(0); x *= 1.0; }", in DEF_TEST()
189 "void main() { return true; }", in DEF_TEST()
195 "int foo() { return; } void main() { }", in DEF_TEST()
201 "int foo() { return 1.0; } void main() { }", in DEF_TEST()
207 "void main() { } void main() { }", in DEF_TEST()
208 "error: 1: duplicate definition of void main()\n1 error\n"); in DEF_TEST()
210 "void main(); void main() { }"); in DEF_TEST()
215 "void main() { int x = int; }", in DEF_TEST()
218 "int test() { return 1; } void main() { int x = test; }", in DEF_TEST()
223 "int main() { return 1; } void main() { }", in DEF_TEST()
224 "error: 1: functions 'void main()' and 'int main()' differ only in return type\n1 " in DEF_TEST()
237 "int main; void main() { }", in DEF_TEST()
238 "error: 1: symbol 'main' was already defined\n1 error\n"); in DEF_TEST()
241 "int x; int x; void main() { }", in DEF_TEST()
244 test_success(r, "int x; void main() { int x; }"); in DEF_TEST()
249 "void main() { float x = 3 * true; }", in DEF_TEST()
252 "void main() { bool x = 1 || 2.0; }", in DEF_TEST()
258 "void main() { float x = 3; x(); }", in DEF_TEST()
264 "void main() { mat4 x = mat4(1); ++x; }", in DEF_TEST()
267 "void main() { vec3 x = vec3(1); --x; }", in DEF_TEST()
270 "void main() { mat4 x = mat4(1); x++; }", in DEF_TEST()
273 "void main() { vec3 x = vec3(1); x--; }", in DEF_TEST()
276 "void main() { int x = !12; }", in DEF_TEST()
279 "struct foo { } bar; void main() { foo x = +bar; }", in DEF_TEST()
282 "struct foo { } bar; void main() { foo x = -bar; }", in DEF_TEST()
285 "void main() { vec2 x = vec2(1, 1); x = +x; x = -x; }"); in DEF_TEST()
290 "void main() { 1 = 2; }", in DEF_TEST()
293 "uniform int x; void main() { x = 0; }", in DEF_TEST()
296 "const int x; void main() { x = 0; }", in DEF_TEST()
302 "void main() { int x = 2[0]; }", in DEF_TEST()
305 "void main() { vec2 x = vec2(0); int y = x[0][0]; }", in DEF_TEST()
311 "void main() { int x = 5 > 2 ? true : 1.0; }", in DEF_TEST()
314 "void main() { int x = 5 > 2 ? vec3(1) : 1.0; }", in DEF_TEST()
326 "void main() { int x; if (5 == 2) x = 3; x++; }", in DEF_TEST()
329 "void main() { int x[2][2]; int i; x[i][1] = 4; }", in DEF_TEST()
332 "int main() { int r; return r; }", in DEF_TEST()
335 "void main() { int x; int y = x; }", in DEF_TEST()
338 "void main() { bool x; if (true && (false || x)) return; }", in DEF_TEST()
341 "void main() { int x; switch (3) { case 0: x = 0; case 1: x = 1; }" in DEF_TEST()
348 "void main() { return; return; }", in DEF_TEST()
351 "void main() { for (;;) { continue; int x = 1; } }", in DEF_TEST()
354 "void main() { for (;;) { } return; }", in DEF_TEST()
357 "void main() { if (true) return; else discard; return; }", in DEF_TEST()
360 "void main() { return; while (true); }", in DEF_TEST()
409 "struct Bad { layout (offset = 5) int x; } bad; void main() { bad.x = 5; }", in DEF_TEST()
412 "struct Bad { int x; layout (offset = 0) int y; } bad; void main() { bad.x = 5; }", in DEF_TEST()
433 "void main() { float x = gl_FragCoord.x; };", in DEF_TEST()
436 "void main() { float r = gl_FragColor.r; };", in DEF_TEST()
442 "void main() { switch (vec2(1)) { case 1: break; } }", in DEF_TEST()
445 "void main() { switch (1) { case vec2(1): break; } }", in DEF_TEST()
451 "void main() { int x = 1; switch (1) { case x: break; } }", in DEF_TEST()
457 "void main() { switch (1) { case 0: case 1: case 0: break; } }", in DEF_TEST()