diff options
author | Chad Versace <chad.versace@intel.com> | 2010-11-11 11:06:40 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2010-12-01 14:36:24 -0800 |
commit | 6c7d874bceb96f56695e3226e66902bbcd45b3f3 (patch) | |
tree | ef730fc30b7809028057d6b1257c4bedd619af8a /tests | |
parent | 6690aee1299a9777ce03767bbdca7f5f1910e658 (diff) |
glslparsertest: Prepend GLSLParserTest comment block to existing tests
GLSLParserTest requires that each test contain a special comment block.
Diffstat (limited to 'tests')
524 files changed, 4709 insertions, 4 deletions
diff --git a/tests/glslparsertest/glsl2/array-01.vert b/tests/glslparsertest/glsl2/array-01.vert index d14135fb3..3ab2fa7b5 100644 --- a/tests/glslparsertest/glsl2/array-01.vert +++ b/tests/glslparsertest/glsl2/array-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* FAIL - array size type must be int */ uniform vec4 [3.2] a; diff --git a/tests/glslparsertest/glsl2/array-02.vert b/tests/glslparsertest/glsl2/array-02.vert index d74361715..1a0b7bedc 100644 --- a/tests/glslparsertest/glsl2/array-02.vert +++ b/tests/glslparsertest/glsl2/array-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* FAIL - array size type must be scalar */ uniform vec4 [ivec4(3)] a; diff --git a/tests/glslparsertest/glsl2/array-03.vert b/tests/glslparsertest/glsl2/array-03.vert index 90a3b959b..930b38628 100644 --- a/tests/glslparsertest/glsl2/array-03.vert +++ b/tests/glslparsertest/glsl2/array-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ uniform vec4 [3] a; diff --git a/tests/glslparsertest/glsl2/array-04.vert b/tests/glslparsertest/glsl2/array-04.vert index 70f434d8a..d46bc80cd 100644 --- a/tests/glslparsertest/glsl2/array-04.vert +++ b/tests/glslparsertest/glsl2/array-04.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - array size type must be int */ uniform vec4 a[3.2]; diff --git a/tests/glslparsertest/glsl2/array-05.vert b/tests/glslparsertest/glsl2/array-05.vert index 168704096..3b9207287 100644 --- a/tests/glslparsertest/glsl2/array-05.vert +++ b/tests/glslparsertest/glsl2/array-05.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - array size type must be scalar */ uniform vec4 a[ivec4(3)]; diff --git a/tests/glslparsertest/glsl2/array-06.vert b/tests/glslparsertest/glsl2/array-06.vert index 05db25796..d37e2de37 100644 --- a/tests/glslparsertest/glsl2/array-06.vert +++ b/tests/glslparsertest/glsl2/array-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform vec4 a[3]; diff --git a/tests/glslparsertest/glsl2/array-07.vert b/tests/glslparsertest/glsl2/array-07.vert index 161ffbf2f..589e687ed 100644 --- a/tests/glslparsertest/glsl2/array-07.vert +++ b/tests/glslparsertest/glsl2/array-07.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - array size must be > 0 */ uniform vec4 a[0]; diff --git a/tests/glslparsertest/glsl2/array-08.vert b/tests/glslparsertest/glsl2/array-08.vert index 4bf0c6bd5..cf28b4fea 100644 --- a/tests/glslparsertest/glsl2/array-08.vert +++ b/tests/glslparsertest/glsl2/array-08.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - array size must be > 0 */ uniform vec4 a[-1]; diff --git a/tests/glslparsertest/glsl2/array-09.vert b/tests/glslparsertest/glsl2/array-09.vert index cad6d0e54..1057d85bd 100644 --- a/tests/glslparsertest/glsl2/array-09.vert +++ b/tests/glslparsertest/glsl2/array-09.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/array-10.vert b/tests/glslparsertest/glsl2/array-10.vert index 019aa2115..7c71daa03 100644 --- a/tests/glslparsertest/glsl2/array-10.vert +++ b/tests/glslparsertest/glsl2/array-10.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - array constructors forbidden in GLSL 1.10 * * This can also generate an error because the 'vec4[]' style syntax is diff --git a/tests/glslparsertest/glsl2/array-11.vert b/tests/glslparsertest/glsl2/array-11.vert index 51d94e947..90295f08b 100644 --- a/tests/glslparsertest/glsl2/array-11.vert +++ b/tests/glslparsertest/glsl2/array-11.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/array-12.vert b/tests/glslparsertest/glsl2/array-12.vert index 35bd81cd7..ad657390a 100644 --- a/tests/glslparsertest/glsl2/array-12.vert +++ b/tests/glslparsertest/glsl2/array-12.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS * The array is implicitly sized by the whole-array assignment. diff --git a/tests/glslparsertest/glsl2/array-13.vert b/tests/glslparsertest/glsl2/array-13.vert index cc7e29a5f..80945e124 100644 --- a/tests/glslparsertest/glsl2/array-13.vert +++ b/tests/glslparsertest/glsl2/array-13.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/array-14.vert b/tests/glslparsertest/glsl2/array-14.vert index bf347a278..b3eb93b58 100644 --- a/tests/glslparsertest/glsl2/array-14.vert +++ b/tests/glslparsertest/glsl2/array-14.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() diff --git a/tests/glslparsertest/glsl2/array-15.vert b/tests/glslparsertest/glsl2/array-15.vert index 1f701f883..c00ca0f68 100644 --- a/tests/glslparsertest/glsl2/array-15.vert +++ b/tests/glslparsertest/glsl2/array-15.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - array declared with a size is redeclared * The only case that where the spec seems to allow array redeclaration is when * the first declaration lacks a size. diff --git a/tests/glslparsertest/glsl2/array-16.vert b/tests/glslparsertest/glsl2/array-16.vert index c55282455..2d3ce8034 100644 --- a/tests/glslparsertest/glsl2/array-16.vert +++ b/tests/glslparsertest/glsl2/array-16.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* FAIL - type mismatch in whole-array assignment * The first assignment implies that the array `a' must be at least vec4[3]. diff --git a/tests/glslparsertest/glsl2/array-17.vert b/tests/glslparsertest/glsl2/array-17.vert index 4b6c5930b..f4af0cd79 100644 --- a/tests/glslparsertest/glsl2/array-17.vert +++ b/tests/glslparsertest/glsl2/array-17.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS - implicit conversions are done in array constructors */ void main() diff --git a/tests/glslparsertest/glsl2/array-18.vert b/tests/glslparsertest/glsl2/array-18.vert index dadd97c9b..a6f34ba9a 100644 --- a/tests/glslparsertest/glsl2/array-18.vert +++ b/tests/glslparsertest/glsl2/array-18.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* FAIL - the "Implicit Conversion" rules are used, not the "Conversion and * Scalar Constructors" rules. Thus, float->int is not done implicitly. diff --git a/tests/glslparsertest/glsl2/array-19.vert b/tests/glslparsertest/glsl2/array-19.vert index 832f38e21..a5a037d4f 100644 --- a/tests/glslparsertest/glsl2/array-19.vert +++ b/tests/glslparsertest/glsl2/array-19.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void func(in vec4 vertices[12]) { diff --git a/tests/glslparsertest/glsl2/array-20.vert b/tests/glslparsertest/glsl2/array-20.vert index ae641615d..b13b659ec 100644 --- a/tests/glslparsertest/glsl2/array-20.vert +++ b/tests/glslparsertest/glsl2/array-20.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - arrays passed as parameters must declare a size */ void func(in vec4 vertices[]) { diff --git a/tests/glslparsertest/glsl2/array-21.vert b/tests/glslparsertest/glsl2/array-21.vert index bcc2b3988..0da588770 100644 --- a/tests/glslparsertest/glsl2/array-21.vert +++ b/tests/glslparsertest/glsl2/array-21.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - arrays passed as parameters must declare a size */ void func(in vec4[] vertices) { diff --git a/tests/glslparsertest/glsl2/array-length-110.frag b/tests/glslparsertest/glsl2/array-length-110.frag index 9df6f5df9..9302e00c4 100644 --- a/tests/glslparsertest/glsl2/array-length-110.frag +++ b/tests/glslparsertest/glsl2/array-length-110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL: The length() method was added in GLSL 1.20. */ void main() { diff --git a/tests/glslparsertest/glsl2/array-length-args.frag b/tests/glslparsertest/glsl2/array-length-args.frag index 28cefe418..1a571c74a 100644 --- a/tests/glslparsertest/glsl2/array-length-args.frag +++ b/tests/glslparsertest/glsl2/array-length-args.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL: The length() method takes no arguments. */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/array-length-unsized.frag b/tests/glslparsertest/glsl2/array-length-unsized.frag index ac336497d..99f8750f2 100644 --- a/tests/glslparsertest/glsl2/array-length-unsized.frag +++ b/tests/glslparsertest/glsl2/array-length-unsized.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL: According to GLSL 1.20 page 20, * "The length method cannot be called on an array that has not been * explicitly sized." diff --git a/tests/glslparsertest/glsl2/assignment-type-mismatch.vert b/tests/glslparsertest/glsl2/assignment-type-mismatch.vert index 438157baf..0169d4979 100644 --- a/tests/glslparsertest/glsl2/assignment-type-mismatch.vert +++ b/tests/glslparsertest/glsl2/assignment-type-mismatch.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - type mismatch in assignment */ uniform float alpha; diff --git a/tests/glslparsertest/glsl2/attribute-01.vert b/tests/glslparsertest/glsl2/attribute-01.vert index 18e9e4468..7a787d934 100644 --- a/tests/glslparsertest/glsl2/attribute-01.vert +++ b/tests/glslparsertest/glsl2/attribute-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type int */ attribute int i; diff --git a/tests/glslparsertest/glsl2/attribute-02.vert b/tests/glslparsertest/glsl2/attribute-02.vert index 6b6df74d2..36a86c01a 100644 --- a/tests/glslparsertest/glsl2/attribute-02.vert +++ b/tests/glslparsertest/glsl2/attribute-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type ivec2 */ attribute ivec2 i; diff --git a/tests/glslparsertest/glsl2/attribute-03.vert b/tests/glslparsertest/glsl2/attribute-03.vert index 870de9e81..b9a2ca0f9 100644 --- a/tests/glslparsertest/glsl2/attribute-03.vert +++ b/tests/glslparsertest/glsl2/attribute-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type ivec3 */ attribute ivec3 i; diff --git a/tests/glslparsertest/glsl2/attribute-04.vert b/tests/glslparsertest/glsl2/attribute-04.vert index 14af2fcaa..14902c9b9 100644 --- a/tests/glslparsertest/glsl2/attribute-04.vert +++ b/tests/glslparsertest/glsl2/attribute-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type ivec4 */ attribute ivec4 i; diff --git a/tests/glslparsertest/glsl2/attribute-05.vert b/tests/glslparsertest/glsl2/attribute-05.vert index 18822c785..75a06da44 100644 --- a/tests/glslparsertest/glsl2/attribute-05.vert +++ b/tests/glslparsertest/glsl2/attribute-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type bool */ attribute bool i; diff --git a/tests/glslparsertest/glsl2/attribute-06.vert b/tests/glslparsertest/glsl2/attribute-06.vert index f18027b81..0aadd31d1 100644 --- a/tests/glslparsertest/glsl2/attribute-06.vert +++ b/tests/glslparsertest/glsl2/attribute-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type bvec2 */ attribute bvec2 i; diff --git a/tests/glslparsertest/glsl2/attribute-07.vert b/tests/glslparsertest/glsl2/attribute-07.vert index 0af13ba84..07cf74582 100644 --- a/tests/glslparsertest/glsl2/attribute-07.vert +++ b/tests/glslparsertest/glsl2/attribute-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type bvec3 */ attribute bvec3 i; diff --git a/tests/glslparsertest/glsl2/attribute-08.vert b/tests/glslparsertest/glsl2/attribute-08.vert index b069c04d1..81c6050bf 100644 --- a/tests/glslparsertest/glsl2/attribute-08.vert +++ b/tests/glslparsertest/glsl2/attribute-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have type bvec4 */ attribute bvec4 i; diff --git a/tests/glslparsertest/glsl2/attribute-09.vert b/tests/glslparsertest/glsl2/attribute-09.vert index 6a607244b..73deac0ad 100644 --- a/tests/glslparsertest/glsl2/attribute-09.vert +++ b/tests/glslparsertest/glsl2/attribute-09.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - attribute cannot have array type in GLSL 1.10 */ attribute vec4 i[10]; diff --git a/tests/glslparsertest/glsl2/attribute-10.vert b/tests/glslparsertest/glsl2/attribute-10.vert index 6f5ef63a0..487aeff38 100644 --- a/tests/glslparsertest/glsl2/attribute-10.vert +++ b/tests/glslparsertest/glsl2/attribute-10.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* FAIL - attribute cannot have array type in GLSL 1.20 */ attribute vec4 i[10]; diff --git a/tests/glslparsertest/glsl2/attribute-11.vert b/tests/glslparsertest/glsl2/attribute-11.vert index 47cb5a058..7606921f3 100644 --- a/tests/glslparsertest/glsl2/attribute-11.vert +++ b/tests/glslparsertest/glsl2/attribute-11.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* FAIL - attribute cannot have array type in GLSL 1.30 */ attribute vec4 i[10]; diff --git a/tests/glslparsertest/glsl2/bit-logic-01.frag b/tests/glslparsertest/glsl2/bit-logic-01.frag index 0963f6a92..21b8d38ff 100644 --- a/tests/glslparsertest/glsl2/bit-logic-01.frag +++ b/tests/glslparsertest/glsl2/bit-logic-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic ops with argument type (int, int) diff --git a/tests/glslparsertest/glsl2/bit-logic-02.frag b/tests/glslparsertest/glsl2/bit-logic-02.frag index d614a0028..d491482df 100644 --- a/tests/glslparsertest/glsl2/bit-logic-02.frag +++ b/tests/glslparsertest/glsl2/bit-logic-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic ops with argument type (uint, uint) diff --git a/tests/glslparsertest/glsl2/bit-logic-03.frag b/tests/glslparsertest/glsl2/bit-logic-03.frag index 502213f22..618e6b0ca 100644 --- a/tests/glslparsertest/glsl2/bit-logic-03.frag +++ b/tests/glslparsertest/glsl2/bit-logic-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic ops with argument type (ivecN, ivecN) diff --git a/tests/glslparsertest/glsl2/bit-logic-04.frag b/tests/glslparsertest/glsl2/bit-logic-04.frag index e1615fbb8..baf0611d5 100644 --- a/tests/glslparsertest/glsl2/bit-logic-04.frag +++ b/tests/glslparsertest/glsl2/bit-logic-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic ops with argument type (uvecN, uvecN) diff --git a/tests/glslparsertest/glsl2/bit-logic-05.frag b/tests/glslparsertest/glsl2/bit-logic-05.frag index 838bdf8c5..b6b1011b2 100644 --- a/tests/glslparsertest/glsl2/bit-logic-05.frag +++ b/tests/glslparsertest/glsl2/bit-logic-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and with argument type (int, uint) diff --git a/tests/glslparsertest/glsl2/bit-logic-06.frag b/tests/glslparsertest/glsl2/bit-logic-06.frag index e7ce5eb5e..eddb46637 100644 --- a/tests/glslparsertest/glsl2/bit-logic-06.frag +++ b/tests/glslparsertest/glsl2/bit-logic-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and with argument type (ivec2, uvec2) diff --git a/tests/glslparsertest/glsl2/bit-logic-07.frag b/tests/glslparsertest/glsl2/bit-logic-07.frag index b581dcc78..4157191a4 100644 --- a/tests/glslparsertest/glsl2/bit-logic-07.frag +++ b/tests/glslparsertest/glsl2/bit-logic-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and with argument type (ivec2, uvec2) diff --git a/tests/glslparsertest/glsl2/bit-logic-08.frag b/tests/glslparsertest/glsl2/bit-logic-08.frag index 6518b1aaf..9c5aa6732 100644 --- a/tests/glslparsertest/glsl2/bit-logic-08.frag +++ b/tests/glslparsertest/glsl2/bit-logic-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and with argument type (uint, ivec2) diff --git a/tests/glslparsertest/glsl2/bit-logic-09.frag b/tests/glslparsertest/glsl2/bit-logic-09.frag index 1884d197b..5c90d3047 100644 --- a/tests/glslparsertest/glsl2/bit-logic-09.frag +++ b/tests/glslparsertest/glsl2/bit-logic-09.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-logic ops with argument type (bool, bool) diff --git a/tests/glslparsertest/glsl2/bit-logic-10.frag b/tests/glslparsertest/glsl2/bit-logic-10.frag index 16c0b2be5..e55098da1 100644 --- a/tests/glslparsertest/glsl2/bit-logic-10.frag +++ b/tests/glslparsertest/glsl2/bit-logic-10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic ops with argument types: diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-01.frag b/tests/glslparsertest/glsl2/bit-logic-assign-01.frag index cc0fe8799..5ef962ecf 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-01.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic assignment ops with argument type (int, int) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-02.frag b/tests/glslparsertest/glsl2/bit-logic-assign-02.frag index caa20872f..94cc23faa 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-02.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic assignment ops with argument type (uint, uint) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-03.frag b/tests/glslparsertest/glsl2/bit-logic-assign-03.frag index fcd2c8b43..b8e4f6295 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-03.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic assignment ops with argument type (ivecN, ivecN) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-04.frag b/tests/glslparsertest/glsl2/bit-logic-assign-04.frag index 35a9a0cbb..295e40fe0 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-04.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic assignment ops with argument type (uvecN, uvecN) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-05.frag b/tests/glslparsertest/glsl2/bit-logic-assign-05.frag index c0db3b700..311a851e7 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-05.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and assignment with argument type (int, uint) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-06.frag b/tests/glslparsertest/glsl2/bit-logic-assign-06.frag index 25b0e8dc6..1be0b4c23 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-06.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and assignment with argument type (ivec2, uvec2) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-07.frag b/tests/glslparsertest/glsl2/bit-logic-assign-07.frag index c0a1d8dc1..3f06a721b 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-07.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and assignment with argument type (ivec2, ivec3) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-08.frag b/tests/glslparsertest/glsl2/bit-logic-assign-08.frag index 690fbb673..f12d23c2d 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-08.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and assignment with argument type (ivec2, uint) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-09.frag b/tests/glslparsertest/glsl2/bit-logic-assign-09.frag index 46950ceae..bcd7ee665 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-09.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-09.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-and assignment with argument type (bool, bool) diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-10.frag b/tests/glslparsertest/glsl2/bit-logic-assign-10.frag index bbc980ca6..5efad8bcc 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-10.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-logic assignment ops with argument types: diff --git a/tests/glslparsertest/glsl2/bit-logic-assign-11.frag b/tests/glslparsertest/glsl2/bit-logic-assign-11.frag index 7ddcb29d0..223210326 100644 --- a/tests/glslparsertest/glsl2/bit-logic-assign-11.frag +++ b/tests/glslparsertest/glsl2/bit-logic-assign-11.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-or assignment with argument type (int, ivec2) diff --git a/tests/glslparsertest/glsl2/bit-not-01.frag b/tests/glslparsertest/glsl2/bit-not-01.frag index b6f675e13..d64228e0d 100644 --- a/tests/glslparsertest/glsl2/bit-not-01.frag +++ b/tests/glslparsertest/glsl2/bit-not-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - bitwise operations aren't supported in 1.10. */ void main() { diff --git a/tests/glslparsertest/glsl2/bit-not-02.frag b/tests/glslparsertest/glsl2/bit-not-02.frag index 8d2c9b4a2..523b5f74b 100644 --- a/tests/glslparsertest/glsl2/bit-not-02.frag +++ b/tests/glslparsertest/glsl2/bit-not-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - bitwise operations aren't supported in 1.20. */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/bit-not-03.frag b/tests/glslparsertest/glsl2/bit-not-03.frag index f8015427e..2cb9bae3e 100644 --- a/tests/glslparsertest/glsl2/bit-not-03.frag +++ b/tests/glslparsertest/glsl2/bit-not-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-not with int argument diff --git a/tests/glslparsertest/glsl2/bit-not-04.frag b/tests/glslparsertest/glsl2/bit-not-04.frag index d86a51b3d..423e210c4 100644 --- a/tests/glslparsertest/glsl2/bit-not-04.frag +++ b/tests/glslparsertest/glsl2/bit-not-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-not with int argument diff --git a/tests/glslparsertest/glsl2/bit-not-05.frag b/tests/glslparsertest/glsl2/bit-not-05.frag index 1a2557154..fab0dda36 100644 --- a/tests/glslparsertest/glsl2/bit-not-05.frag +++ b/tests/glslparsertest/glsl2/bit-not-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-not with ivec2 argument diff --git a/tests/glslparsertest/glsl2/bit-not-06.frag b/tests/glslparsertest/glsl2/bit-not-06.frag index c7372571f..875b3b011 100644 --- a/tests/glslparsertest/glsl2/bit-not-06.frag +++ b/tests/glslparsertest/glsl2/bit-not-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-not with uvec2 argument diff --git a/tests/glslparsertest/glsl2/bit-not-07.frag b/tests/glslparsertest/glsl2/bit-not-07.frag index a6e55f972..b1287959b 100644 --- a/tests/glslparsertest/glsl2/bit-not-07.frag +++ b/tests/glslparsertest/glsl2/bit-not-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-not with bool argument diff --git a/tests/glslparsertest/glsl2/bit-not-08.frag b/tests/glslparsertest/glsl2/bit-not-08.frag index 659bf0b5a..2be4b6807 100644 --- a/tests/glslparsertest/glsl2/bit-not-08.frag +++ b/tests/glslparsertest/glsl2/bit-not-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-not with uvec2 argument diff --git a/tests/glslparsertest/glsl2/bit-shift-01.frag b/tests/glslparsertest/glsl2/bit-shift-01.frag index 4bfd6d449..11edc41d9 100644 --- a/tests/glslparsertest/glsl2/bit-shift-01.frag +++ b/tests/glslparsertest/glsl2/bit-shift-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument type (int, int) diff --git a/tests/glslparsertest/glsl2/bit-shift-02.frag b/tests/glslparsertest/glsl2/bit-shift-02.frag index 240798c59..75e3d0210 100644 --- a/tests/glslparsertest/glsl2/bit-shift-02.frag +++ b/tests/glslparsertest/glsl2/bit-shift-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument type (uint, uint) diff --git a/tests/glslparsertest/glsl2/bit-shift-03.frag b/tests/glslparsertest/glsl2/bit-shift-03.frag index 20bea35c9..538440135 100644 --- a/tests/glslparsertest/glsl2/bit-shift-03.frag +++ b/tests/glslparsertest/glsl2/bit-shift-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument type (ivecN, ivecN) diff --git a/tests/glslparsertest/glsl2/bit-shift-04.frag b/tests/glslparsertest/glsl2/bit-shift-04.frag index f14d2bc57..d821fbdea 100644 --- a/tests/glslparsertest/glsl2/bit-shift-04.frag +++ b/tests/glslparsertest/glsl2/bit-shift-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument type (uvecN, uvecN) diff --git a/tests/glslparsertest/glsl2/bit-shift-05.frag b/tests/glslparsertest/glsl2/bit-shift-05.frag index 08e425e9d..801ee0348 100644 --- a/tests/glslparsertest/glsl2/bit-shift-05.frag +++ b/tests/glslparsertest/glsl2/bit-shift-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument types: diff --git a/tests/glslparsertest/glsl2/bit-shift-06.frag b/tests/glslparsertest/glsl2/bit-shift-06.frag index 611ad498d..2da54b725 100644 --- a/tests/glslparsertest/glsl2/bit-shift-06.frag +++ b/tests/glslparsertest/glsl2/bit-shift-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument types: diff --git a/tests/glslparsertest/glsl2/bit-shift-07.frag b/tests/glslparsertest/glsl2/bit-shift-07.frag index 3094e5897..fc26ff4d9 100644 --- a/tests/glslparsertest/glsl2/bit-shift-07.frag +++ b/tests/glslparsertest/glsl2/bit-shift-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift with argument types: diff --git a/tests/glslparsertest/glsl2/bit-shift-08.frag b/tests/glslparsertest/glsl2/bit-shift-08.frag index fcfa1a22b..9b101b977 100644 --- a/tests/glslparsertest/glsl2/bit-shift-08.frag +++ b/tests/glslparsertest/glsl2/bit-shift-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-shift with argument type (int, ivec2) diff --git a/tests/glslparsertest/glsl2/bit-shift-09.frag b/tests/glslparsertest/glsl2/bit-shift-09.frag index 4d7e87e2c..2c756a214 100644 --- a/tests/glslparsertest/glsl2/bit-shift-09.frag +++ b/tests/glslparsertest/glsl2/bit-shift-09.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl <= 1.30 // // Description: bit-shift with arguments (mat4, int) diff --git a/tests/glslparsertest/glsl2/bit-shift-10.frag b/tests/glslparsertest/glsl2/bit-shift-10.frag index a1f39c22a..9a47a71b9 100644 --- a/tests/glslparsertest/glsl2/bit-shift-10.frag +++ b/tests/glslparsertest/glsl2/bit-shift-10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-shift with unequally sized vectors diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-01.frag b/tests/glslparsertest/glsl2/bit-shift-assign-01.frag index cf53b8f7e..26b760417 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-01.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument type (int, int) diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-02.frag b/tests/glslparsertest/glsl2/bit-shift-assign-02.frag index e82802ede..ae7d88b83 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-02.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument type (uint, uint) diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-03.frag b/tests/glslparsertest/glsl2/bit-shift-assign-03.frag index 962c34a02..cc2c47ffb 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-03.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument type (ivecN, ivecN) diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-04.frag b/tests/glslparsertest/glsl2/bit-shift-assign-04.frag index f2a949ab4..e927a6882 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-04.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument type (uvecN, uvecN) diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-05.frag b/tests/glslparsertest/glsl2/bit-shift-assign-05.frag index 384d316d2..1deb86b16 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-05.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument types: diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-06.frag b/tests/glslparsertest/glsl2/bit-shift-assign-06.frag index b60dffcc4..6f1b1416e 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-06.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument types: diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-07.frag b/tests/glslparsertest/glsl2/bit-shift-assign-07.frag index d7198bdab..53374279c 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-07.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: PASS, glsl == 1.30 // // Description: bit-shift-assign with argument types: diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-08.frag b/tests/glslparsertest/glsl2/bit-shift-assign-08.frag index 2b926dcf0..a116db5a8 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-08.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-shift-assign with argument type (int, ivec2) diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-09.frag b/tests/glslparsertest/glsl2/bit-shift-assign-09.frag index 651866c8d..92583b2e7 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-09.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-09.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl <= 1.30 // // Description: bit-shift-assign with arguments (mat4, int) diff --git a/tests/glslparsertest/glsl2/bit-shift-assign-10.frag b/tests/glslparsertest/glsl2/bit-shift-assign-10.frag index 58c0e54d3..a60a93e29 100644 --- a/tests/glslparsertest/glsl2/bit-shift-assign-10.frag +++ b/tests/glslparsertest/glsl2/bit-shift-assign-10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Expected: FAIL, glsl == 1.30 // // Description: bit-shift-assign with unequally sized vectors diff --git a/tests/glslparsertest/glsl2/builtin-functions-110.frag b/tests/glslparsertest/glsl2/builtin-functions-110.frag index 66e6971dd..b16d0aa61 100644 --- a/tests/glslparsertest/glsl2/builtin-functions-110.frag +++ b/tests/glslparsertest/glsl2/builtin-functions-110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 110 diff --git a/tests/glslparsertest/glsl2/builtin-functions-110.vert b/tests/glslparsertest/glsl2/builtin-functions-110.vert index 08e192c79..4a3e12e91 100644 --- a/tests/glslparsertest/glsl2/builtin-functions-110.vert +++ b/tests/glslparsertest/glsl2/builtin-functions-110.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 110 diff --git a/tests/glslparsertest/glsl2/builtin-functions-120.vert b/tests/glslparsertest/glsl2/builtin-functions-120.vert index bfe2f4553..05453f1c2 100644 --- a/tests/glslparsertest/glsl2/builtin-functions-120.vert +++ b/tests/glslparsertest/glsl2/builtin-functions-120.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 diff --git a/tests/glslparsertest/glsl2/builtin-texturematrix.frag b/tests/glslparsertest/glsl2/builtin-texturematrix.frag index 543186fdf..1edb50f81 100644 --- a/tests/glslparsertest/glsl2/builtin-texturematrix.frag +++ b/tests/glslparsertest/glsl2/builtin-texturematrix.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() { diff --git a/tests/glslparsertest/glsl2/comment-continuation.frag b/tests/glslparsertest/glsl2/comment-continuation.frag index 3f094c540..ea39796b8 100644 --- a/tests/glslparsertest/glsl2/comment-continuation.frag +++ b/tests/glslparsertest/glsl2/comment-continuation.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { // This is a comment with a trailing backslash that shouldn't matter. \ diff --git a/tests/glslparsertest/glsl2/condition-01.vert b/tests/glslparsertest/glsl2/condition-01.vert index d89c31311..b95b8a0b1 100644 --- a/tests/glslparsertest/glsl2/condition-01.vert +++ b/tests/glslparsertest/glsl2/condition-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - :? condition is not bool scalar */ uniform bvec4 a; diff --git a/tests/glslparsertest/glsl2/condition-02.vert b/tests/glslparsertest/glsl2/condition-02.vert index cbd0e18d9..873322298 100644 --- a/tests/glslparsertest/glsl2/condition-02.vert +++ b/tests/glslparsertest/glsl2/condition-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - :? condition is not bool scalar */ uniform float a; diff --git a/tests/glslparsertest/glsl2/condition-03.vert b/tests/glslparsertest/glsl2/condition-03.vert index 9af5d7aa4..c36296667 100644 --- a/tests/glslparsertest/glsl2/condition-03.vert +++ b/tests/glslparsertest/glsl2/condition-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform bool a; diff --git a/tests/glslparsertest/glsl2/condition-04.vert b/tests/glslparsertest/glsl2/condition-04.vert index f440b7e99..94bfdf3d3 100644 --- a/tests/glslparsertest/glsl2/condition-04.vert +++ b/tests/glslparsertest/glsl2/condition-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - type of second two operands must match */ uniform bool a; diff --git a/tests/glslparsertest/glsl2/condition-05.vert b/tests/glslparsertest/glsl2/condition-05.vert index 3dff18f51..1b4293738 100644 --- a/tests/glslparsertest/glsl2/condition-05.vert +++ b/tests/glslparsertest/glsl2/condition-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/condition-06.vert b/tests/glslparsertest/glsl2/condition-06.vert index 62cc16807..e9dae0a35 100644 --- a/tests/glslparsertest/glsl2/condition-06.vert +++ b/tests/glslparsertest/glsl2/condition-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 33 (page 39 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/condition-07.vert b/tests/glslparsertest/glsl2/condition-07.vert index 26d91de80..3c58e8f23 100644 --- a/tests/glslparsertest/glsl2/condition-07.vert +++ b/tests/glslparsertest/glsl2/condition-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * From page 38 (page 44 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/const-array-01.frag b/tests/glslparsertest/glsl2/const-array-01.frag index 3ba04e949..98cfb1cc2 100644 --- a/tests/glslparsertest/glsl2/const-array-01.frag +++ b/tests/glslparsertest/glsl2/const-array-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/const-array-02.frag b/tests/glslparsertest/glsl2/const-array-02.frag index d42fda7b9..30319c9c8 100644 --- a/tests/glslparsertest/glsl2/const-array-02.frag +++ b/tests/glslparsertest/glsl2/const-array-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/const-array-03.frag b/tests/glslparsertest/glsl2/const-array-03.frag index ab98c012e..f2eda8a9b 100644 --- a/tests/glslparsertest/glsl2/const-array-03.frag +++ b/tests/glslparsertest/glsl2/const-array-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/const-array-04.frag b/tests/glslparsertest/glsl2/const-array-04.frag index 32b158d17..26f26a0fc 100644 --- a/tests/glslparsertest/glsl2/const-array-04.frag +++ b/tests/glslparsertest/glsl2/const-array-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/const-array-05.frag b/tests/glslparsertest/glsl2/const-array-05.frag index 84ebbb12f..675a33d97 100644 --- a/tests/glslparsertest/glsl2/const-array-05.frag +++ b/tests/glslparsertest/glsl2/const-array-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 void main() diff --git a/tests/glslparsertest/glsl2/const-builtin-110.frag b/tests/glslparsertest/glsl2/const-builtin-110.frag index 8d0f47017..53e21cd9e 100644 --- a/tests/glslparsertest/glsl2/const-builtin-110.frag +++ b/tests/glslparsertest/glsl2/const-builtin-110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - calls to builtins are not legal in 1.10 */ #version 110 void main() { diff --git a/tests/glslparsertest/glsl2/const-builtin-noise1.frag b/tests/glslparsertest/glsl2/const-builtin-noise1.frag index bbad6dc2c..1fc9281f1 100644 --- a/tests/glslparsertest/glsl2/const-builtin-noise1.frag +++ b/tests/glslparsertest/glsl2/const-builtin-noise1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - noise functions are not allowed in constant expressions */ #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/const-builtin-noise2.frag b/tests/glslparsertest/glsl2/const-builtin-noise2.frag index fea3d979c..56442f2bf 100644 --- a/tests/glslparsertest/glsl2/const-builtin-noise2.frag +++ b/tests/glslparsertest/glsl2/const-builtin-noise2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - noise functions are not allowed in constant expressions */ #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/const-builtin-noise3.frag b/tests/glslparsertest/glsl2/const-builtin-noise3.frag index 59c283614..5a45e0a5b 100644 --- a/tests/glslparsertest/glsl2/const-builtin-noise3.frag +++ b/tests/glslparsertest/glsl2/const-builtin-noise3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - noise functions are not allowed in constant expressions */ #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/const-builtin-noise4.frag b/tests/glslparsertest/glsl2/const-builtin-noise4.frag index 169739961..960547e5d 100644 --- a/tests/glslparsertest/glsl2/const-builtin-noise4.frag +++ b/tests/glslparsertest/glsl2/const-builtin-noise4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - noise functions are not allowed in constant expressions */ #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/const-implicit-conversion.frag b/tests/glslparsertest/glsl2/const-implicit-conversion.frag index 67d731ff3..04118119c 100644 --- a/tests/glslparsertest/glsl2/const-implicit-conversion.frag +++ b/tests/glslparsertest/glsl2/const-implicit-conversion.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/const-mat-scalar-01.frag b/tests/glslparsertest/glsl2/const-mat-scalar-01.frag index 29b34e7a5..c037cdb11 100644 --- a/tests/glslparsertest/glsl2/const-mat-scalar-01.frag +++ b/tests/glslparsertest/glsl2/const-mat-scalar-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat2 c1 = mat2(0.0, -1.0, -1.0, 0.0); diff --git a/tests/glslparsertest/glsl2/const-mat-scalar-02.frag b/tests/glslparsertest/glsl2/const-mat-scalar-02.frag index a08564265..22d7cfef9 100644 --- a/tests/glslparsertest/glsl2/const-mat-scalar-02.frag +++ b/tests/glslparsertest/glsl2/const-mat-scalar-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat2 c1 = mat2(-0.5, 0.5, 0.5, -0.5); diff --git a/tests/glslparsertest/glsl2/const-mat-scalar-03.frag b/tests/glslparsertest/glsl2/const-mat-scalar-03.frag index 256e54748..f8668ae48 100644 --- a/tests/glslparsertest/glsl2/const-mat-scalar-03.frag +++ b/tests/glslparsertest/glsl2/const-mat-scalar-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat2 c1 = mat2(1.0, 0.0, 0.0, 1.0); diff --git a/tests/glslparsertest/glsl2/const-mat-scalar-04.frag b/tests/glslparsertest/glsl2/const-mat-scalar-04.frag index b5c4f0e45..7bcdeb8e4 100644 --- a/tests/glslparsertest/glsl2/const-mat-scalar-04.frag +++ b/tests/glslparsertest/glsl2/const-mat-scalar-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat2 c1 = mat2(4.0, 4.0, 4.0, 4.0); diff --git a/tests/glslparsertest/glsl2/const-matrix-multiply-01.frag b/tests/glslparsertest/glsl2/const-matrix-multiply-01.frag index 4e837dbd7..4eade7ccd 100644 --- a/tests/glslparsertest/glsl2/const-matrix-multiply-01.frag +++ b/tests/glslparsertest/glsl2/const-matrix-multiply-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat2 c1 = mat2(2.0); diff --git a/tests/glslparsertest/glsl2/const-matrix-multiply-02.frag b/tests/glslparsertest/glsl2/const-matrix-multiply-02.frag index 5a16144d6..71bc1e09a 100644 --- a/tests/glslparsertest/glsl2/const-matrix-multiply-02.frag +++ b/tests/glslparsertest/glsl2/const-matrix-multiply-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/const-userfunction.frag b/tests/glslparsertest/glsl2/const-userfunction.frag index 47cd7e263..6c3bcc2b5 100644 --- a/tests/glslparsertest/glsl2/const-userfunction.frag +++ b/tests/glslparsertest/glsl2/const-userfunction.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - user functions are not allowed in constant expressions */ #version 120 float id(float x) { diff --git a/tests/glslparsertest/glsl2/const-vec-mat.frag b/tests/glslparsertest/glsl2/const-vec-mat.frag index 7c7f328cc..d7bed88ae 100644 --- a/tests/glslparsertest/glsl2/const-vec-mat.frag +++ b/tests/glslparsertest/glsl2/const-vec-mat.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const vec3 c1 = vec3(1.0, 2.0, 3.0); diff --git a/tests/glslparsertest/glsl2/const-vec-scalar-01.frag b/tests/glslparsertest/glsl2/const-vec-scalar-01.frag index 3fcd87092..f4957a29a 100644 --- a/tests/glslparsertest/glsl2/const-vec-scalar-01.frag +++ b/tests/glslparsertest/glsl2/const-vec-scalar-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const vec4 c1 = vec4(-1.0, 0.0, -1.0, -1.0); diff --git a/tests/glslparsertest/glsl2/const-vec-scalar-02.frag b/tests/glslparsertest/glsl2/const-vec-scalar-02.frag index 2d455c321..a5f665daa 100644 --- a/tests/glslparsertest/glsl2/const-vec-scalar-02.frag +++ b/tests/glslparsertest/glsl2/const-vec-scalar-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const vec4 c1 = vec4(0.5, -0.5, 0.5, -0.5); diff --git a/tests/glslparsertest/glsl2/const-vec-scalar-03.frag b/tests/glslparsertest/glsl2/const-vec-scalar-03.frag index b5603da1f..5b1588227 100644 --- a/tests/glslparsertest/glsl2/const-vec-scalar-03.frag +++ b/tests/glslparsertest/glsl2/const-vec-scalar-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const vec4 c1 = vec4(0.0, 1.0, 0.0, 1.0); diff --git a/tests/glslparsertest/glsl2/const-vec-scalar-04.frag b/tests/glslparsertest/glsl2/const-vec-scalar-04.frag index 0d2945d4a..148e14ba4 100644 --- a/tests/glslparsertest/glsl2/const-vec-scalar-04.frag +++ b/tests/glslparsertest/glsl2/const-vec-scalar-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const vec4 c1 = vec4(4.0, 4.0, 4.0, 4.0); diff --git a/tests/glslparsertest/glsl2/const-vec-scalar-05.frag b/tests/glslparsertest/glsl2/const-vec-scalar-05.frag index de994c0c2..c92e76eeb 100644 --- a/tests/glslparsertest/glsl2/const-vec-scalar-05.frag +++ b/tests/glslparsertest/glsl2/const-vec-scalar-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/constructor-01.vert b/tests/glslparsertest/glsl2/constructor-01.vert index fdfaf8986..1f3db50dc 100644 --- a/tests/glslparsertest/glsl2/constructor-01.vert +++ b/tests/glslparsertest/glsl2/constructor-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() diff --git a/tests/glslparsertest/glsl2/constructor-02.vert b/tests/glslparsertest/glsl2/constructor-02.vert index 47acbe9db..9532ff18c 100644 --- a/tests/glslparsertest/glsl2/constructor-02.vert +++ b/tests/glslparsertest/glsl2/constructor-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - cannot construct samplers */ void main() { diff --git a/tests/glslparsertest/glsl2/constructor-03.vert b/tests/glslparsertest/glsl2/constructor-03.vert index 07ec22563..6ce16b447 100644 --- a/tests/glslparsertest/glsl2/constructor-03.vert +++ b/tests/glslparsertest/glsl2/constructor-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - cannot construct a matrix from a matrix in GLSL 1.10 */ uniform mat2 a; diff --git a/tests/glslparsertest/glsl2/constructor-04.vert b/tests/glslparsertest/glsl2/constructor-04.vert index 19d5e011d..3d3daa476 100644 --- a/tests/glslparsertest/glsl2/constructor-04.vert +++ b/tests/glslparsertest/glsl2/constructor-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* FAIL - matrix must be only parameter to matrix constructor */ diff --git a/tests/glslparsertest/glsl2/constructor-05.vert b/tests/glslparsertest/glsl2/constructor-05.vert index 9c74f75a4..3e7bcd001 100644 --- a/tests/glslparsertest/glsl2/constructor-05.vert +++ b/tests/glslparsertest/glsl2/constructor-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - too few components supplied to constructor */ uniform vec2 a; diff --git a/tests/glslparsertest/glsl2/constructor-06.vert b/tests/glslparsertest/glsl2/constructor-06.vert index d77a5f9e8..37283fc06 100644 --- a/tests/glslparsertest/glsl2/constructor-06.vert +++ b/tests/glslparsertest/glsl2/constructor-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/constructor-07.vert b/tests/glslparsertest/glsl2/constructor-07.vert index 92322506e..68f37499a 100644 --- a/tests/glslparsertest/glsl2/constructor-07.vert +++ b/tests/glslparsertest/glsl2/constructor-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform ivec2 a; diff --git a/tests/glslparsertest/glsl2/constructor-08.vert b/tests/glslparsertest/glsl2/constructor-08.vert index 27153f0cd..505c8202c 100644 --- a/tests/glslparsertest/glsl2/constructor-08.vert +++ b/tests/glslparsertest/glsl2/constructor-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform float a; diff --git a/tests/glslparsertest/glsl2/constructor-09.vert b/tests/glslparsertest/glsl2/constructor-09.vert index 1985699b3..ac2563bcb 100644 --- a/tests/glslparsertest/glsl2/constructor-09.vert +++ b/tests/glslparsertest/glsl2/constructor-09.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform int a; diff --git a/tests/glslparsertest/glsl2/constructor-10.vert b/tests/glslparsertest/glsl2/constructor-10.vert index f9fa488d7..c94f03257 100644 --- a/tests/glslparsertest/glsl2/constructor-10.vert +++ b/tests/glslparsertest/glsl2/constructor-10.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - not enough data provided for construction */ vec4 foo() diff --git a/tests/glslparsertest/glsl2/constructor-11.vert b/tests/glslparsertest/glsl2/constructor-11.vert index 08c68f16d..dd32c5e30 100644 --- a/tests/glslparsertest/glsl2/constructor-11.vert +++ b/tests/glslparsertest/glsl2/constructor-11.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const ivec4 iv = ivec4(mat4(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)); diff --git a/tests/glslparsertest/glsl2/constructor-12.vert b/tests/glslparsertest/glsl2/constructor-12.vert index 3f6773ca0..5cf5e9cef 100644 --- a/tests/glslparsertest/glsl2/constructor-12.vert +++ b/tests/glslparsertest/glsl2/constructor-12.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat2 m = mat2(ivec4(1,2,3,4)); diff --git a/tests/glslparsertest/glsl2/constructor-13.vert b/tests/glslparsertest/glsl2/constructor-13.vert index c8df0c00f..c97a1ee94 100644 --- a/tests/glslparsertest/glsl2/constructor-13.vert +++ b/tests/glslparsertest/glsl2/constructor-13.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/constructor-14.vert b/tests/glslparsertest/glsl2/constructor-14.vert index da8f4b298..24388dc6e 100644 --- a/tests/glslparsertest/glsl2/constructor-14.vert +++ b/tests/glslparsertest/glsl2/constructor-14.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform mat2 m; diff --git a/tests/glslparsertest/glsl2/constructor-15.vert b/tests/glslparsertest/glsl2/constructor-15.vert index 0f0ad45a9..1d59364b4 100644 --- a/tests/glslparsertest/glsl2/constructor-15.vert +++ b/tests/glslparsertest/glsl2/constructor-15.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform mat2 m; diff --git a/tests/glslparsertest/glsl2/constructor-16.vert b/tests/glslparsertest/glsl2/constructor-16.vert index a056cc39f..72ea4ae9a 100644 --- a/tests/glslparsertest/glsl2/constructor-16.vert +++ b/tests/glslparsertest/glsl2/constructor-16.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 uniform vec2 u1; diff --git a/tests/glslparsertest/glsl2/constructor-17.vert b/tests/glslparsertest/glsl2/constructor-17.vert index 8911f9dc0..6226a8a3b 100644 --- a/tests/glslparsertest/glsl2/constructor-17.vert +++ b/tests/glslparsertest/glsl2/constructor-17.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() diff --git a/tests/glslparsertest/glsl2/constructor-18.vert b/tests/glslparsertest/glsl2/constructor-18.vert index 58ed7485b..7d92626ac 100644 --- a/tests/glslparsertest/glsl2/constructor-18.vert +++ b/tests/glslparsertest/glsl2/constructor-18.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 diff --git a/tests/glslparsertest/glsl2/constructor-19.vert b/tests/glslparsertest/glsl2/constructor-19.vert index 37975d6b1..033edd35d 100644 --- a/tests/glslparsertest/glsl2/constructor-19.vert +++ b/tests/glslparsertest/glsl2/constructor-19.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 diff --git a/tests/glslparsertest/glsl2/constructor-20.vert b/tests/glslparsertest/glsl2/constructor-20.vert index ba6098916..39092ce82 100644 --- a/tests/glslparsertest/glsl2/constructor-20.vert +++ b/tests/glslparsertest/glsl2/constructor-20.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 diff --git a/tests/glslparsertest/glsl2/constructor-21.vert b/tests/glslparsertest/glsl2/constructor-21.vert index f79d629d9..1cc9002e8 100644 --- a/tests/glslparsertest/glsl2/constructor-21.vert +++ b/tests/glslparsertest/glsl2/constructor-21.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/constructor-22.vert b/tests/glslparsertest/glsl2/constructor-22.vert index 51330ef1d..329a85ad3 100644 --- a/tests/glslparsertest/glsl2/constructor-22.vert +++ b/tests/glslparsertest/glsl2/constructor-22.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/constructor-23.vert b/tests/glslparsertest/glsl2/constructor-23.vert index 50f7fdb27..fd2b9d490 100644 --- a/tests/glslparsertest/glsl2/constructor-23.vert +++ b/tests/glslparsertest/glsl2/constructor-23.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 uniform mat2 m2; varying mat4 m4; diff --git a/tests/glslparsertest/glsl2/constructor-24.vert b/tests/glslparsertest/glsl2/constructor-24.vert index 21e9780c0..8ae7d47ae 100644 --- a/tests/glslparsertest/glsl2/constructor-24.vert +++ b/tests/glslparsertest/glsl2/constructor-24.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 uniform mat3 m3; varying mat2 m2; diff --git a/tests/glslparsertest/glsl2/constructor-25.vert b/tests/glslparsertest/glsl2/constructor-25.vert index 6a6830c33..f272118e7 100644 --- a/tests/glslparsertest/glsl2/constructor-25.vert +++ b/tests/glslparsertest/glsl2/constructor-25.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - implicit conversions are not allowed in GLSL 1.10 */ struct s { float f; }; diff --git a/tests/glslparsertest/glsl2/constructor-26.vert b/tests/glslparsertest/glsl2/constructor-26.vert index a0c6867d3..fb3fad7e2 100644 --- a/tests/glslparsertest/glsl2/constructor-26.vert +++ b/tests/glslparsertest/glsl2/constructor-26.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 struct s { float f; }; diff --git a/tests/glslparsertest/glsl2/constructor-27.vert b/tests/glslparsertest/glsl2/constructor-27.vert index 3a02c5fc1..b1c5ab486 100644 --- a/tests/glslparsertest/glsl2/constructor-27.vert +++ b/tests/glslparsertest/glsl2/constructor-27.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - too many parameters given to structure constructor */ struct s { float f; }; diff --git a/tests/glslparsertest/glsl2/constructor-28.vert b/tests/glslparsertest/glsl2/constructor-28.vert index 4281b50d9..66b88a8e6 100644 --- a/tests/glslparsertest/glsl2/constructor-28.vert +++ b/tests/glslparsertest/glsl2/constructor-28.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - type mismatch in assignment */ uniform float alpha; diff --git a/tests/glslparsertest/glsl2/defined-01.vert b/tests/glslparsertest/glsl2/defined-01.vert index 845f42305..835128d40 100644 --- a/tests/glslparsertest/glsl2/defined-01.vert +++ b/tests/glslparsertest/glsl2/defined-01.vert @@ -1,4 +1,7 @@ -/* PASS */ +// [config] +// expect_result: pass +// glsl_version: 110 +// [end config] #if 1 == 0 || defined UNDEFINED #else diff --git a/tests/glslparsertest/glsl2/draw_buffers-01.frag b/tests/glslparsertest/glsl2/draw_buffers-01.frag index 66e8918ce..562fcc2c7 100644 --- a/tests/glslparsertest/glsl2/draw_buffers-01.frag +++ b/tests/glslparsertest/glsl2/draw_buffers-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 110 #extension GL_ARB_draw_buffers: disable diff --git a/tests/glslparsertest/glsl2/draw_buffers-05.vert b/tests/glslparsertest/glsl2/draw_buffers-05.vert index 1dbb7ae1b..5c61a11a2 100644 --- a/tests/glslparsertest/glsl2/draw_buffers-05.vert +++ b/tests/glslparsertest/glsl2/draw_buffers-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - GL_ARB_draw_buffers does exist in the vertex shader, but it only * makes the built in variable gl_MaxDrawBuffers be available. */ diff --git a/tests/glslparsertest/glsl2/draw_buffers-06.vert b/tests/glslparsertest/glsl2/draw_buffers-06.vert index 2bc47d6fc..ad4b08604 100644 --- a/tests/glslparsertest/glsl2/draw_buffers-06.vert +++ b/tests/glslparsertest/glsl2/draw_buffers-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - GL_ARB_draw_buffers does exist in the vertex shader, but it only * makes the built in variable gl_MaxDrawBuffers be available. */ diff --git a/tests/glslparsertest/glsl2/draw_buffers-07.vert b/tests/glslparsertest/glsl2/draw_buffers-07.vert index 641b5c5a3..66d75cb57 100644 --- a/tests/glslparsertest/glsl2/draw_buffers-07.vert +++ b/tests/glslparsertest/glsl2/draw_buffers-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - gl_MaxDrawBuffers is available, but gl_FragData is only in fragment * shaders */ diff --git a/tests/glslparsertest/glsl2/draw_buffers-08.frag b/tests/glslparsertest/glsl2/draw_buffers-08.frag index d37148285..50a2bff5b 100644 --- a/tests/glslparsertest/glsl2/draw_buffers-08.frag +++ b/tests/glslparsertest/glsl2/draw_buffers-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 110 diff --git a/tests/glslparsertest/glsl2/draw_buffers-09.frag b/tests/glslparsertest/glsl2/draw_buffers-09.frag index 19a951221..e04841956 100644 --- a/tests/glslparsertest/glsl2/draw_buffers-09.frag +++ b/tests/glslparsertest/glsl2/draw_buffers-09.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - out of bounds access of gl_FragData */ #version 110 diff --git a/tests/glslparsertest/glsl2/function-01.vert b/tests/glslparsertest/glsl2/function-01.vert index 0eaa2397a..b68af742f 100644 --- a/tests/glslparsertest/glsl2/function-01.vert +++ b/tests/glslparsertest/glsl2/function-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - no function named 'foo' exists */ vec4 bar(float x, float y, float z, float w) diff --git a/tests/glslparsertest/glsl2/function-02.vert b/tests/glslparsertest/glsl2/function-02.vert index 941fcc1ef..a325aa1c8 100644 --- a/tests/glslparsertest/glsl2/function-02.vert +++ b/tests/glslparsertest/glsl2/function-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - no version of 'foo' matches the call to 'foo' */ vec4 foo(float x, float y, float z, float w) diff --git a/tests/glslparsertest/glsl2/function-03.vert b/tests/glslparsertest/glsl2/function-03.vert index b0da42f8e..a01aa69e1 100644 --- a/tests/glslparsertest/glsl2/function-03.vert +++ b/tests/glslparsertest/glsl2/function-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ vec4 foo(in float x, in float y, float z, float w) diff --git a/tests/glslparsertest/glsl2/function-04.vert b/tests/glslparsertest/glsl2/function-04.vert index dfc0d2b7a..cdac830ae 100644 --- a/tests/glslparsertest/glsl2/function-04.vert +++ b/tests/glslparsertest/glsl2/function-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - type mismatch in assignment */ vec3 foo(float x, float y, float z) diff --git a/tests/glslparsertest/glsl2/function-05.vert b/tests/glslparsertest/glsl2/function-05.vert index d33c7bcfe..e8c7b52c9 100644 --- a/tests/glslparsertest/glsl2/function-05.vert +++ b/tests/glslparsertest/glsl2/function-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - type qualifiers mismatch between declaration and definition */ void foo(float x, float y, float z, out float l); diff --git a/tests/glslparsertest/glsl2/function-06.vert b/tests/glslparsertest/glsl2/function-06.vert index fa688b3ee..62207b442 100644 --- a/tests/glslparsertest/glsl2/function-06.vert +++ b/tests/glslparsertest/glsl2/function-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ vec4 foo(in float x, in float y, float z, float w) diff --git a/tests/glslparsertest/glsl2/function-07.vert b/tests/glslparsertest/glsl2/function-07.vert index 536666641..3a5a183fd 100644 --- a/tests/glslparsertest/glsl2/function-07.vert +++ b/tests/glslparsertest/glsl2/function-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - function does not return a value */ vec4 foo(in float x) diff --git a/tests/glslparsertest/glsl2/function-08.frag b/tests/glslparsertest/glsl2/function-08.frag index b2d51b238..ccdccdc6c 100644 --- a/tests/glslparsertest/glsl2/function-08.frag +++ b/tests/glslparsertest/glsl2/function-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL */ /* NVIDIA - incompatible types in initialization */ /* fglrx - Undeclared identifier x_adjust */ diff --git a/tests/glslparsertest/glsl2/function-09.vert b/tests/glslparsertest/glsl2/function-09.vert index 95cd1d298..7fafe81fa 100644 --- a/tests/glslparsertest/glsl2/function-09.vert +++ b/tests/glslparsertest/glsl2/function-09.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - invalid return type for function 'foo' * * This test reproduces bugzilla #29608. diff --git a/tests/glslparsertest/glsl2/function-10.vert b/tests/glslparsertest/glsl2/function-10.vert index 6f3be5a05..e785dea88 100644 --- a/tests/glslparsertest/glsl2/function-10.vert +++ b/tests/glslparsertest/glsl2/function-10.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - invalid parameter type for function 'foo' */ void bar(foo x); diff --git a/tests/glslparsertest/glsl2/function-11.vert b/tests/glslparsertest/glsl2/function-11.vert index b09cc2248..3d4d2ade5 100644 --- a/tests/glslparsertest/glsl2/function-11.vert +++ b/tests/glslparsertest/glsl2/function-11.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * In a function prototype it is valid to have some parameters named diff --git a/tests/glslparsertest/glsl2/glsl-pp-elif-no-expression-2.frag b/tests/glslparsertest/glsl2/glsl-pp-elif-no-expression-2.frag index 00bc53124..3ac3add5b 100644 --- a/tests/glslparsertest/glsl2/glsl-pp-elif-no-expression-2.frag +++ b/tests/glslparsertest/glsl2/glsl-pp-elif-no-expression-2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - since the if condition fails, the preprocessor actually encounters * the elif without an expression, which should then fail. */ diff --git a/tests/glslparsertest/glsl2/gst-gl-bulge.frag b/tests/glslparsertest/glsl2/gst-gl-bulge.frag index b25f9c128..86980c3c7 100644 --- a/tests/glslparsertest/glsl2/gst-gl-bulge.frag +++ b/tests/glslparsertest/glsl2/gst-gl-bulge.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-bumper.frag b/tests/glslparsertest/glsl2/gst-gl-bumper.frag index 9fe19a8d1..395428c11 100644 --- a/tests/glslparsertest/glsl2/gst-gl-bumper.frag +++ b/tests/glslparsertest/glsl2/gst-gl-bumper.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Cyril Comparon <cyril.comparon@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-bumper.vert b/tests/glslparsertest/glsl2/gst-gl-bumper.vert index 94591a819..ad1560b7c 100644 --- a/tests/glslparsertest/glsl2/gst-gl-bumper.vert +++ b/tests/glslparsertest/glsl2/gst-gl-bumper.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Cyril Comparon <cyril.comparon@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-convolution.frag b/tests/glslparsertest/glsl2/gst-gl-convolution.frag index 3b6195218..e21ea7afa 100644 --- a/tests/glslparsertest/glsl2/gst-gl-convolution.frag +++ b/tests/glslparsertest/glsl2/gst-gl-convolution.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-cube-v.vert b/tests/glslparsertest/glsl2/gst-gl-cube-v.vert index 7b956b6e9..411558d55 100644 --- a/tests/glslparsertest/glsl2/gst-gl-cube-v.vert +++ b/tests/glslparsertest/glsl2/gst-gl-cube-v.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-difference.frag b/tests/glslparsertest/glsl2/gst-gl-difference.frag index 98e1f6c0e..8bd25f430 100644 --- a/tests/glslparsertest/glsl2/gst-gl-difference.frag +++ b/tests/glslparsertest/glsl2/gst-gl-difference.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-fisheye.frag b/tests/glslparsertest/glsl2/gst-gl-fisheye.frag index a3ea2b79e..d63a17b0b 100644 --- a/tests/glslparsertest/glsl2/gst-gl-fisheye.frag +++ b/tests/glslparsertest/glsl2/gst-gl-fisheye.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-glass.frag b/tests/glslparsertest/glsl2/gst-gl-glass.frag index 0d9cfeac5..c2060129e 100644 --- a/tests/glslparsertest/glsl2/gst-gl-glass.frag +++ b/tests/glslparsertest/glsl2/gst-gl-glass.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-greedyh.frag b/tests/glslparsertest/glsl2/gst-gl-greedyh.frag index 23d2c66fd..2a0817e16 100644 --- a/tests/glslparsertest/glsl2/gst-gl-greedyh.frag +++ b/tests/glslparsertest/glsl2/gst-gl-greedyh.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2009 Julien Isorce <julien.isorce@mail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-hconv9.frag b/tests/glslparsertest/glsl2/gst-gl-hconv9.frag index 6f9abc95d..01afa313d 100644 --- a/tests/glslparsertest/glsl2/gst-gl-hconv9.frag +++ b/tests/glslparsertest/glsl2/gst-gl-hconv9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-interpolate.frag b/tests/glslparsertest/glsl2/gst-gl-interpolate.frag index b4ce893a0..44026874c 100644 --- a/tests/glslparsertest/glsl2/gst-gl-interpolate.frag +++ b/tests/glslparsertest/glsl2/gst-gl-interpolate.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-luma-threshold.frag b/tests/glslparsertest/glsl2/gst-gl-luma-threshold.frag index 5b00d1a8d..8b1feaee7 100644 --- a/tests/glslparsertest/glsl2/gst-gl-luma-threshold.frag +++ b/tests/glslparsertest/glsl2/gst-gl-luma-threshold.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-luma-to-curve.frag b/tests/glslparsertest/glsl2/gst-gl-luma-to-curve.frag index 9d90a1b76..6b36af385 100644 --- a/tests/glslparsertest/glsl2/gst-gl-luma-to-curve.frag +++ b/tests/glslparsertest/glsl2/gst-gl-luma-to-curve.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-mirror.frag b/tests/glslparsertest/glsl2/gst-gl-mirror.frag index f5efae024..f770fc058 100644 --- a/tests/glslparsertest/glsl2/gst-gl-mirror.frag +++ b/tests/glslparsertest/glsl2/gst-gl-mirror.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-mosaic-f.frag b/tests/glslparsertest/glsl2/gst-gl-mosaic-f.frag index 23ec87926..a7667b42e 100644 --- a/tests/glslparsertest/glsl2/gst-gl-mosaic-f.frag +++ b/tests/glslparsertest/glsl2/gst-gl-mosaic-f.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2009 Julien Isorce <julien.isorce@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-mosaic-v.vert b/tests/glslparsertest/glsl2/gst-gl-mosaic-v.vert index ba9eec282..7c64d601d 100644 --- a/tests/glslparsertest/glsl2/gst-gl-mosaic-v.vert +++ b/tests/glslparsertest/glsl2/gst-gl-mosaic-v.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2009 Julien Isorce <julien.isorce@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-multiply.frag b/tests/glslparsertest/glsl2/gst-gl-multiply.frag index 7446501a2..536f06684 100644 --- a/tests/glslparsertest/glsl2/gst-gl-multiply.frag +++ b/tests/glslparsertest/glsl2/gst-gl-multiply.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-rgb-to-curve.frag b/tests/glslparsertest/glsl2/gst-gl-rgb-to-curve.frag index 5b5463c03..1f6b64112 100644 --- a/tests/glslparsertest/glsl2/gst-gl-rgb-to-curve.frag +++ b/tests/glslparsertest/glsl2/gst-gl-rgb-to-curve.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-sin.frag b/tests/glslparsertest/glsl2/gst-gl-sin.frag index 96e1be1ac..4141e82fc 100644 --- a/tests/glslparsertest/glsl2/gst-gl-sin.frag +++ b/tests/glslparsertest/glsl2/gst-gl-sin.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-sobel.frag b/tests/glslparsertest/glsl2/gst-gl-sobel.frag index fdc28d992..fa797e6f3 100644 --- a/tests/glslparsertest/glsl2/gst-gl-sobel.frag +++ b/tests/glslparsertest/glsl2/gst-gl-sobel.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-square.frag b/tests/glslparsertest/glsl2/gst-gl-square.frag index 69ffb1303..d6669a815 100644 --- a/tests/glslparsertest/glsl2/gst-gl-square.frag +++ b/tests/glslparsertest/glsl2/gst-gl-square.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-squeeze.frag b/tests/glslparsertest/glsl2/gst-gl-squeeze.frag index a66110766..653307dde 100644 --- a/tests/glslparsertest/glsl2/gst-gl-squeeze.frag +++ b/tests/glslparsertest/glsl2/gst-gl-squeeze.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-sum.frag b/tests/glslparsertest/glsl2/gst-gl-sum.frag index 60d8e7d92..97378507e 100644 --- a/tests/glslparsertest/glsl2/gst-gl-sum.frag +++ b/tests/glslparsertest/glsl2/gst-gl-sum.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-text-download-i420-yv12.frag b/tests/glslparsertest/glsl2/gst-gl-text-download-i420-yv12.frag index 15d891e89..65fb18dc5 100644 --- a/tests/glslparsertest/glsl2/gst-gl-text-download-i420-yv12.frag +++ b/tests/glslparsertest/glsl2/gst-gl-text-download-i420-yv12.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2007 David A. Schleef <ds@schleef.org> diff --git a/tests/glslparsertest/glsl2/gst-gl-text-download-yuy2-uyvy.frag b/tests/glslparsertest/glsl2/gst-gl-text-download-yuy2-uyvy.frag index ed73e77c0..9dbe97b34 100644 --- a/tests/glslparsertest/glsl2/gst-gl-text-download-yuy2-uyvy.frag +++ b/tests/glslparsertest/glsl2/gst-gl-text-download-yuy2-uyvy.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2007 David A. Schleef <ds@schleef.org> diff --git a/tests/glslparsertest/glsl2/gst-gl-text-upload-ayuv.frag b/tests/glslparsertest/glsl2/gst-gl-text-upload-ayuv.frag index fdb59aa40..15a59ed39 100644 --- a/tests/glslparsertest/glsl2/gst-gl-text-upload-ayuv.frag +++ b/tests/glslparsertest/glsl2/gst-gl-text-upload-ayuv.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2007 David A. Schleef <ds@schleef.org> diff --git a/tests/glslparsertest/glsl2/gst-gl-text-upload-i420-yv12.frag b/tests/glslparsertest/glsl2/gst-gl-text-upload-i420-yv12.frag index c35fa9953..f6b798ac9 100644 --- a/tests/glslparsertest/glsl2/gst-gl-text-upload-i420-yv12.frag +++ b/tests/glslparsertest/glsl2/gst-gl-text-upload-i420-yv12.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2007 David A. Schleef <ds@schleef.org> diff --git a/tests/glslparsertest/glsl2/gst-gl-text-upload-yuy2-uyvy.frag b/tests/glslparsertest/glsl2/gst-gl-text-upload-yuy2-uyvy.frag index 448d63be5..93280db42 100644 --- a/tests/glslparsertest/glsl2/gst-gl-text-upload-yuy2-uyvy.frag +++ b/tests/glslparsertest/glsl2/gst-gl-text-upload-yuy2-uyvy.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2007 David A. Schleef <ds@schleef.org> diff --git a/tests/glslparsertest/glsl2/gst-gl-texture-interp.frag b/tests/glslparsertest/glsl2/gst-gl-texture-interp.frag index eeec4bbf8..41bbdba5b 100644 --- a/tests/glslparsertest/glsl2/gst-gl-texture-interp.frag +++ b/tests/glslparsertest/glsl2/gst-gl-texture-interp.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-tunnel.frag b/tests/glslparsertest/glsl2/gst-gl-tunnel.frag index c2e0b9701..70f80d0ed 100644 --- a/tests/glslparsertest/glsl2/gst-gl-tunnel.frag +++ b/tests/glslparsertest/glsl2/gst-gl-tunnel.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-twirl.frag b/tests/glslparsertest/glsl2/gst-gl-twirl.frag index ecf0523aa..bb759781c 100644 --- a/tests/glslparsertest/glsl2/gst-gl-twirl.frag +++ b/tests/glslparsertest/glsl2/gst-gl-twirl.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/gst-gl-vconv9.frag b/tests/glslparsertest/glsl2/gst-gl-vconv9.frag index bc8c04656..e6cdeb1c9 100644 --- a/tests/glslparsertest/glsl2/gst-gl-vconv9.frag +++ b/tests/glslparsertest/glsl2/gst-gl-vconv9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * GStreamer * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> diff --git a/tests/glslparsertest/glsl2/if-01.vert b/tests/glslparsertest/glsl2/if-01.vert index ca9abd54f..cdf01940d 100644 --- a/tests/glslparsertest/glsl2/if-01.vert +++ b/tests/glslparsertest/glsl2/if-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - if-statement condition is not bool scalar */ uniform bvec4 a; diff --git a/tests/glslparsertest/glsl2/if-02.vert b/tests/glslparsertest/glsl2/if-02.vert index 7adccea04..c9a1ecf06 100644 --- a/tests/glslparsertest/glsl2/if-02.vert +++ b/tests/glslparsertest/glsl2/if-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - if-statement condition is not bool scalar */ uniform float a; diff --git a/tests/glslparsertest/glsl2/if-03.vert b/tests/glslparsertest/glsl2/if-03.vert index 179618c71..98ae050cf 100644 --- a/tests/glslparsertest/glsl2/if-03.vert +++ b/tests/glslparsertest/glsl2/if-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform bool a; diff --git a/tests/glslparsertest/glsl2/if-04.vert b/tests/glslparsertest/glsl2/if-04.vert index 7b711fb7e..7c7e7da9e 100644 --- a/tests/glslparsertest/glsl2/if-04.vert +++ b/tests/glslparsertest/glsl2/if-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform bvec4 a; diff --git a/tests/glslparsertest/glsl2/invariant-01.vert b/tests/glslparsertest/glsl2/invariant-01.vert index 6e687d5e1..42355ca65 100644 --- a/tests/glslparsertest/glsl2/invariant-01.vert +++ b/tests/glslparsertest/glsl2/invariant-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - based on examples in the GLSL 1.20 spec */ #version 120 diff --git a/tests/glslparsertest/glsl2/invariant-02.vert b/tests/glslparsertest/glsl2/invariant-02.vert index 7afd23c7f..6164219eb 100644 --- a/tests/glslparsertest/glsl2/invariant-02.vert +++ b/tests/glslparsertest/glsl2/invariant-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/invariant-03.vert b/tests/glslparsertest/glsl2/invariant-03.vert index e5304f9a5..935b0578e 100644 --- a/tests/glslparsertest/glsl2/invariant-03.vert +++ b/tests/glslparsertest/glsl2/invariant-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/invariant-04.vert b/tests/glslparsertest/glsl2/invariant-04.vert index 45e5d37c8..16ad284b4 100644 --- a/tests/glslparsertest/glsl2/invariant-04.vert +++ b/tests/glslparsertest/glsl2/invariant-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/invariant-05.vert b/tests/glslparsertest/glsl2/invariant-05.vert index 76cece370..c1cbc053c 100644 --- a/tests/glslparsertest/glsl2/invariant-05.vert +++ b/tests/glslparsertest/glsl2/invariant-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/invariant-06.vert b/tests/glslparsertest/glsl2/invariant-06.vert index 14db7a15e..7d68aa13c 100644 --- a/tests/glslparsertest/glsl2/invariant-06.vert +++ b/tests/glslparsertest/glsl2/invariant-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/invariant-07.vert b/tests/glslparsertest/glsl2/invariant-07.vert index 05cfbe5d5..2aceb28cc 100644 --- a/tests/glslparsertest/glsl2/invariant-07.vert +++ b/tests/glslparsertest/glsl2/invariant-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/invariant-08.vert b/tests/glslparsertest/glsl2/invariant-08.vert index 6defc9f5a..695c575d0 100644 --- a/tests/glslparsertest/glsl2/invariant-08.vert +++ b/tests/glslparsertest/glsl2/invariant-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - * * From page 27 (page 33 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/local-function-01.frag b/tests/glslparsertest/glsl2/local-function-01.frag index faf7e9734..0ceb4c9c5 100644 --- a/tests/glslparsertest/glsl2/local-function-01.frag +++ b/tests/glslparsertest/glsl2/local-function-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - local function declarations are not allowed. */ #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/local-function-02.frag b/tests/glslparsertest/glsl2/local-function-02.frag index 6fd065678..dc52f57b7 100644 --- a/tests/glslparsertest/glsl2/local-function-02.frag +++ b/tests/glslparsertest/glsl2/local-function-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL */ #version 120 void main() { diff --git a/tests/glslparsertest/glsl2/local-function-03.frag b/tests/glslparsertest/glsl2/local-function-03.frag index e201b45de..1ee171c25 100644 --- a/tests/glslparsertest/glsl2/local-function-03.frag +++ b/tests/glslparsertest/glsl2/local-function-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - local function declarations are not allowed in GLSL 1.10. */ #version 110 void main() { diff --git a/tests/glslparsertest/glsl2/loop-01.vert b/tests/glslparsertest/glsl2/loop-01.vert index 4173f29e0..caf3ae85a 100644 --- a/tests/glslparsertest/glsl2/loop-01.vert +++ b/tests/glslparsertest/glsl2/loop-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform int count; uniform vec4 data[10]; diff --git a/tests/glslparsertest/glsl2/loop-02.vert b/tests/glslparsertest/glsl2/loop-02.vert index d02001b64..10b570e2f 100644 --- a/tests/glslparsertest/glsl2/loop-02.vert +++ b/tests/glslparsertest/glsl2/loop-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform int count; uniform vec4 data[10]; diff --git a/tests/glslparsertest/glsl2/loop-03.vert b/tests/glslparsertest/glsl2/loop-03.vert index 1546efd5b..34749e1fd 100644 --- a/tests/glslparsertest/glsl2/loop-03.vert +++ b/tests/glslparsertest/glsl2/loop-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() diff --git a/tests/glslparsertest/glsl2/loop-04.vert b/tests/glslparsertest/glsl2/loop-04.vert index 19874b559..cfb02de35 100644 --- a/tests/glslparsertest/glsl2/loop-04.vert +++ b/tests/glslparsertest/glsl2/loop-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() diff --git a/tests/glslparsertest/glsl2/loop-05.vert b/tests/glslparsertest/glsl2/loop-05.vert index d6840b0f4..ec07166af 100644 --- a/tests/glslparsertest/glsl2/loop-05.vert +++ b/tests/glslparsertest/glsl2/loop-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - loop body does not start a new scope */ void main() diff --git a/tests/glslparsertest/glsl2/loop-06.vert b/tests/glslparsertest/glsl2/loop-06.vert index f1c8829f4..bb7e86360 100644 --- a/tests/glslparsertest/glsl2/loop-06.vert +++ b/tests/glslparsertest/glsl2/loop-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - the while loop has a single statement: the if block. */ uniform bool condition; void main() diff --git a/tests/glslparsertest/glsl2/loop-07.frag b/tests/glslparsertest/glsl2/loop-07.frag index 3d8cbb730..e2a62afb2 100644 --- a/tests/glslparsertest/glsl2/loop-07.frag +++ b/tests/glslparsertest/glsl2/loop-07.frag @@ -1,4 +1,8 @@ -/* PASS */ +// [config] +// expect_result: pass +// glsl_version: 110 +// [end config] + void main() { float a = 0.0; diff --git a/tests/glslparsertest/glsl2/matrix-01.vert b/tests/glslparsertest/glsl2/matrix-01.vert index f46416c8f..29627674a 100644 --- a/tests/glslparsertest/glsl2/matrix-01.vert +++ b/tests/glslparsertest/glsl2/matrix-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - non-square matrices are not available in GLSL 1.10 */ void main() diff --git a/tests/glslparsertest/glsl2/matrix-02.vert b/tests/glslparsertest/glsl2/matrix-02.vert index 0630722b7..69eea6fb5 100644 --- a/tests/glslparsertest/glsl2/matrix-02.vert +++ b/tests/glslparsertest/glsl2/matrix-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - non-square matrices are not available in GLSL 1.10 */ void main() diff --git a/tests/glslparsertest/glsl2/matrix-03.vert b/tests/glslparsertest/glsl2/matrix-03.vert index 925dc8062..fe30f5a2e 100644 --- a/tests/glslparsertest/glsl2/matrix-03.vert +++ b/tests/glslparsertest/glsl2/matrix-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - non-square matrices are not available in GLSL 1.10 */ void main() diff --git a/tests/glslparsertest/glsl2/matrix-04.vert b/tests/glslparsertest/glsl2/matrix-04.vert index 5275619b3..d123313e5 100644 --- a/tests/glslparsertest/glsl2/matrix-04.vert +++ b/tests/glslparsertest/glsl2/matrix-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - non-square matrices are not available in GLSL 1.10 */ void main() diff --git a/tests/glslparsertest/glsl2/matrix-05.vert b/tests/glslparsertest/glsl2/matrix-05.vert index 74e1fd251..9da2b40fa 100644 --- a/tests/glslparsertest/glsl2/matrix-05.vert +++ b/tests/glslparsertest/glsl2/matrix-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - non-square matrices are not available in GLSL 1.10 */ void main() diff --git a/tests/glslparsertest/glsl2/matrix-06.vert b/tests/glslparsertest/glsl2/matrix-06.vert index 0a512b852..1818f242a 100644 --- a/tests/glslparsertest/glsl2/matrix-06.vert +++ b/tests/glslparsertest/glsl2/matrix-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - non-square matrices are not available in GLSL 1.10 */ void main() diff --git a/tests/glslparsertest/glsl2/matrix-07.vert b/tests/glslparsertest/glsl2/matrix-07.vert index 0b59aa69d..5ac0c0068 100644 --- a/tests/glslparsertest/glsl2/matrix-07.vert +++ b/tests/glslparsertest/glsl2/matrix-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform mat2 a; diff --git a/tests/glslparsertest/glsl2/matrix-08.vert b/tests/glslparsertest/glsl2/matrix-08.vert index 38138d22d..1ee5b2636 100644 --- a/tests/glslparsertest/glsl2/matrix-08.vert +++ b/tests/glslparsertest/glsl2/matrix-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/matrix-09.vert b/tests/glslparsertest/glsl2/matrix-09.vert index 18afbcace..2576babfd 100644 --- a/tests/glslparsertest/glsl2/matrix-09.vert +++ b/tests/glslparsertest/glsl2/matrix-09.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - matrix-to-matrix constructors are not available in GLSL 1.10 */ uniform mat3 a; diff --git a/tests/glslparsertest/glsl2/matrix-10.vert b/tests/glslparsertest/glsl2/matrix-10.vert index 20b55180c..7d1918dbd 100644 --- a/tests/glslparsertest/glsl2/matrix-10.vert +++ b/tests/glslparsertest/glsl2/matrix-10.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 120 /* PASS */ diff --git a/tests/glslparsertest/glsl2/matrix-11.vert b/tests/glslparsertest/glsl2/matrix-11.vert index 1b127f974..c0917c5c2 100644 --- a/tests/glslparsertest/glsl2/matrix-11.vert +++ b/tests/glslparsertest/glsl2/matrix-11.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform mat4 a; diff --git a/tests/glslparsertest/glsl2/matrix-12.vert b/tests/glslparsertest/glsl2/matrix-12.vert index 24de5a1b2..9cdb58d3c 100644 --- a/tests/glslparsertest/glsl2/matrix-12.vert +++ b/tests/glslparsertest/glsl2/matrix-12.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform mat4 a; diff --git a/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.frag b/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.frag index 21e7e5277..ed9054506 100644 --- a/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.frag +++ b/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * bumpTBN_SH_FP.glsl - ambient, diffuse and specular lighting in tangent space * with shadow mapping and 4-samples PCF diff --git a/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.vert b/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.vert index 33e2bf182..bf93986b4 100644 --- a/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.vert +++ b/tests/glslparsertest/glsl2/norsetto-bumptbn_sh_fp.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* * bumpTBN_SH_VP.glsl - transforming to tangent space and computing shadow * mapping matrix diff --git a/tests/glslparsertest/glsl2/parameters-01.vert b/tests/glslparsertest/glsl2/parameters-01.vert index b485106e9..05252ae38 100644 --- a/tests/glslparsertest/glsl2/parameters-01.vert +++ b/tests/glslparsertest/glsl2/parameters-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL: redefinition of a() */ void a() diff --git a/tests/glslparsertest/glsl2/parameters-02.vert b/tests/glslparsertest/glsl2/parameters-02.vert index 7ff5f59ab..413ff7341 100644 --- a/tests/glslparsertest/glsl2/parameters-02.vert +++ b/tests/glslparsertest/glsl2/parameters-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void a() diff --git a/tests/glslparsertest/glsl2/parameters-03.vert b/tests/glslparsertest/glsl2/parameters-03.vert index 7ec30f80c..c92f3dcfd 100644 --- a/tests/glslparsertest/glsl2/parameters-03.vert +++ b/tests/glslparsertest/glsl2/parameters-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - x is redeclared in the function body at the same scope as the * parameter */ diff --git a/tests/glslparsertest/glsl2/parameters-04.vert b/tests/glslparsertest/glsl2/parameters-04.vert index abcd1f979..75886c0a2 100644 --- a/tests/glslparsertest/glsl2/parameters-04.vert +++ b/tests/glslparsertest/glsl2/parameters-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - formal parameter lacks a name */ float a(float x, float ) diff --git a/tests/glslparsertest/glsl2/parameters-05.vert b/tests/glslparsertest/glsl2/parameters-05.vert index 37e5b3b74..95f33042a 100644 --- a/tests/glslparsertest/glsl2/parameters-05.vert +++ b/tests/glslparsertest/glsl2/parameters-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - void parameter cannot have a name */ float a(void x) diff --git a/tests/glslparsertest/glsl2/parameters-06.vert b/tests/glslparsertest/glsl2/parameters-06.vert index 074c398a6..8cf8a4374 100644 --- a/tests/glslparsertest/glsl2/parameters-06.vert +++ b/tests/glslparsertest/glsl2/parameters-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - cannot mix void and non-void parameters */ float a(float, void); diff --git a/tests/glslparsertest/glsl2/parameters-07.vert b/tests/glslparsertest/glsl2/parameters-07.vert index 6af41ef2a..6b9840560 100644 --- a/tests/glslparsertest/glsl2/parameters-07.vert +++ b/tests/glslparsertest/glsl2/parameters-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - cannot have multiple void parameters */ float a(void, void); diff --git a/tests/glslparsertest/glsl2/parameters-08.vert b/tests/glslparsertest/glsl2/parameters-08.vert index 47f4b91c1..84cfdc56f 100644 --- a/tests/glslparsertest/glsl2/parameters-08.vert +++ b/tests/glslparsertest/glsl2/parameters-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - size must be speicified for formal parameter arrays */ float a(float x[], int y) diff --git a/tests/glslparsertest/glsl2/pragma-01.vert b/tests/glslparsertest/glsl2/pragma-01.vert index 0fbffb1d1..46ffbfb08 100644 --- a/tests/glslparsertest/glsl2/pragma-01.vert +++ b/tests/glslparsertest/glsl2/pragma-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #pragma optimize(on) #pragma debug(off) diff --git a/tests/glslparsertest/glsl2/pragma-02.vert b/tests/glslparsertest/glsl2/pragma-02.vert index 715b9c254..4d5216055 100644 --- a/tests/glslparsertest/glsl2/pragma-02.vert +++ b/tests/glslparsertest/glsl2/pragma-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * From page 11 (page 17 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/pragma-03.vert b/tests/glslparsertest/glsl2/pragma-03.vert index 9fdc29b1f..8c76bdde6 100644 --- a/tests/glslparsertest/glsl2/pragma-03.vert +++ b/tests/glslparsertest/glsl2/pragma-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 11 (page 17 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/pragma-04.vert b/tests/glslparsertest/glsl2/pragma-04.vert index 4172b4b5a..c875677d9 100644 --- a/tests/glslparsertest/glsl2/pragma-04.vert +++ b/tests/glslparsertest/glsl2/pragma-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 11 (page 17 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/pragma-05.vert b/tests/glslparsertest/glsl2/pragma-05.vert index 9f5c2b314..fed784bcf 100644 --- a/tests/glslparsertest/glsl2/pragma-05.vert +++ b/tests/glslparsertest/glsl2/pragma-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 11 (page 17 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/pragma-06.vert b/tests/glslparsertest/glsl2/pragma-06.vert index f9d57833c..d6cbc24f3 100644 --- a/tests/glslparsertest/glsl2/pragma-06.vert +++ b/tests/glslparsertest/glsl2/pragma-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 11 (page 17 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/pragma-07.vert b/tests/glslparsertest/glsl2/pragma-07.vert index cfa076abf..5703fca49 100644 --- a/tests/glslparsertest/glsl2/pragma-07.vert +++ b/tests/glslparsertest/glsl2/pragma-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * From page 11 (page 17 of the PDF) of the GLSL 1.10 spec: diff --git a/tests/glslparsertest/glsl2/pragma-08.frag b/tests/glslparsertest/glsl2/pragma-08.frag index 4ab52bc00..86973c829 100644 --- a/tests/glslparsertest/glsl2/pragma-08.frag +++ b/tests/glslparsertest/glsl2/pragma-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * Based on the Regnum Online shader in bugzilla #28138. diff --git a/tests/glslparsertest/glsl2/precision-01.vert b/tests/glslparsertest/glsl2/precision-01.vert index a69b69b30..8dd7a0bba 100644 --- a/tests/glslparsertest/glsl2/precision-01.vert +++ b/tests/glslparsertest/glsl2/precision-01.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - precision qualifiers require GLSL 1.30 or later */ highp vec4 light; diff --git a/tests/glslparsertest/glsl2/precision-02.vert b/tests/glslparsertest/glsl2/precision-02.vert index f6aaa78ec..d0d91ec7a 100644 --- a/tests/glslparsertest/glsl2/precision-02.vert +++ b/tests/glslparsertest/glsl2/precision-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* PASS */ highp vec4 light; diff --git a/tests/glslparsertest/glsl2/precision-03.vert b/tests/glslparsertest/glsl2/precision-03.vert index 653c5be25..a216d1d13 100644 --- a/tests/glslparsertest/glsl2/precision-03.vert +++ b/tests/glslparsertest/glsl2/precision-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* FAIL - precision qualified type must be int or float */ precision highp vec4; diff --git a/tests/glslparsertest/glsl2/precision-04.vert b/tests/glslparsertest/glsl2/precision-04.vert index 21802122f..29036599a 100644 --- a/tests/glslparsertest/glsl2/precision-04.vert +++ b/tests/glslparsertest/glsl2/precision-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* PASS */ precision highp float; diff --git a/tests/glslparsertest/glsl2/precision-05.vert b/tests/glslparsertest/glsl2/precision-05.vert index bbe0e088d..a7fd4d98b 100644 --- a/tests/glslparsertest/glsl2/precision-05.vert +++ b/tests/glslparsertest/glsl2/precision-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* FAIL - keyword 'precision' required. */ lowp float; diff --git a/tests/glslparsertest/glsl2/precision-06.vert b/tests/glslparsertest/glsl2/precision-06.vert index 233d014e2..fd7814f25 100644 --- a/tests/glslparsertest/glsl2/precision-06.vert +++ b/tests/glslparsertest/glsl2/precision-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* PASS */ diff --git a/tests/glslparsertest/glsl2/preprocessor-01.frag b/tests/glslparsertest/glsl2/preprocessor-01.frag index 817bf6103..a8bc55d51 100644 --- a/tests/glslparsertest/glsl2/preprocessor-01.frag +++ b/tests/glslparsertest/glsl2/preprocessor-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * Test submitted by Thomas Jones (thomas.jones 'at' utoronto 'dot' ca) on diff --git a/tests/glslparsertest/glsl2/qualifier-01.vert b/tests/glslparsertest/glsl2/qualifier-01.vert index 54ec3572a..c732d2156 100644 --- a/tests/glslparsertest/glsl2/qualifier-01.vert +++ b/tests/glslparsertest/glsl2/qualifier-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* FAIL - inout only allowed in parameter list */ inout vec4 foo; diff --git a/tests/glslparsertest/glsl2/qualifier-02.vert b/tests/glslparsertest/glsl2/qualifier-02.vert index b635d52aa..8f7d75841 100644 --- a/tests/glslparsertest/glsl2/qualifier-02.vert +++ b/tests/glslparsertest/glsl2/qualifier-02.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - in only allowed in parameter list in GLSL 1.10 */ in foo; diff --git a/tests/glslparsertest/glsl2/qualifier-03.vert b/tests/glslparsertest/glsl2/qualifier-03.vert index 7e448034a..4e6cee2a6 100644 --- a/tests/glslparsertest/glsl2/qualifier-03.vert +++ b/tests/glslparsertest/glsl2/qualifier-03.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - out only allowed in parameter list in GLSL 1.10 */ out vec4 foo; diff --git a/tests/glslparsertest/glsl2/qualifier-04.vert b/tests/glslparsertest/glsl2/qualifier-04.vert index d03cafc1d..2427374be 100644 --- a/tests/glslparsertest/glsl2/qualifier-04.vert +++ b/tests/glslparsertest/glsl2/qualifier-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* PASS */ in vec4 foo; diff --git a/tests/glslparsertest/glsl2/qualifier-05.vert b/tests/glslparsertest/glsl2/qualifier-05.vert index 15281f338..38ada442f 100644 --- a/tests/glslparsertest/glsl2/qualifier-05.vert +++ b/tests/glslparsertest/glsl2/qualifier-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.30 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 130 /* PASS */ out vec4 foo; diff --git a/tests/glslparsertest/glsl2/qualifier-06.vert b/tests/glslparsertest/glsl2/qualifier-06.vert index 1907a087c..40258f68f 100644 --- a/tests/glslparsertest/glsl2/qualifier-06.vert +++ b/tests/glslparsertest/glsl2/qualifier-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - in only allowed in parameter list in GLSL 1.10 */ void main() { diff --git a/tests/glslparsertest/glsl2/qualifier-07.vert b/tests/glslparsertest/glsl2/qualifier-07.vert index 12568a57d..297b71e1d 100644 --- a/tests/glslparsertest/glsl2/qualifier-07.vert +++ b/tests/glslparsertest/glsl2/qualifier-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - out only allowed in parameter list in GLSL 1.10 */ void main() { diff --git a/tests/glslparsertest/glsl2/qualifier-08.vert b/tests/glslparsertest/glsl2/qualifier-08.vert index 9d866b021..ebeaa82b0 100644 --- a/tests/glslparsertest/glsl2/qualifier-08.vert +++ b/tests/glslparsertest/glsl2/qualifier-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - centroid and invariant are not reserved words in GLSL 1.10 */ uniform vec2 centroid; uniform vec2 invariant; @@ -5,4 +14,4 @@ uniform vec2 invariant; void main() { gl_Position = vec4(centroid, invariant); -}
\ No newline at end of file +} diff --git a/tests/glslparsertest/glsl2/redeclaration-01.vert b/tests/glslparsertest/glsl2/redeclaration-01.vert index d17fc24dd..9292b07f5 100644 --- a/tests/glslparsertest/glsl2/redeclaration-01.vert +++ b/tests/glslparsertest/glsl2/redeclaration-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS * * This test reproduces the failure reported in bugzilla #29607. diff --git a/tests/glslparsertest/glsl2/redeclaration-02.vert b/tests/glslparsertest/glsl2/redeclaration-02.vert index 2b2ff56cc..70541febc 100644 --- a/tests/glslparsertest/glsl2/redeclaration-02.vert +++ b/tests/glslparsertest/glsl2/redeclaration-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - variables and functions have separate namespaces in 1.10 */ const float f = 1.0; diff --git a/tests/glslparsertest/glsl2/redeclaration-03.vert b/tests/glslparsertest/glsl2/redeclaration-03.vert index 1c39a9313..14084efab 100644 --- a/tests/glslparsertest/glsl2/redeclaration-03.vert +++ b/tests/glslparsertest/glsl2/redeclaration-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - Names beginning with "gl_" are reserved. * * Section 3.7 of the GLSL 1.20 spec says, without qualification: diff --git a/tests/glslparsertest/glsl2/redeclaration-04.vert b/tests/glslparsertest/glsl2/redeclaration-04.vert index 33e0836c6..4bd8e15e4 100644 --- a/tests/glslparsertest/glsl2/redeclaration-04.vert +++ b/tests/glslparsertest/glsl2/redeclaration-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * GLSL 1.20 section 4.2 states: diff --git a/tests/glslparsertest/glsl2/redeclaration-05.vert b/tests/glslparsertest/glsl2/redeclaration-05.vert index c4c4352a5..6d4a6076e 100644 --- a/tests/glslparsertest/glsl2/redeclaration-05.vert +++ b/tests/glslparsertest/glsl2/redeclaration-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - variable redeclared */ void main() { diff --git a/tests/glslparsertest/glsl2/redeclaration-06.vert b/tests/glslparsertest/glsl2/redeclaration-06.vert index ab75c86e6..2c91b1fea 100644 --- a/tests/glslparsertest/glsl2/redeclaration-06.vert +++ b/tests/glslparsertest/glsl2/redeclaration-06.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - structure type name conflicts with a variable name in same scope */ void main() { diff --git a/tests/glslparsertest/glsl2/redeclaration-07.vert b/tests/glslparsertest/glsl2/redeclaration-07.vert index 6865ba2ed..321e75e40 100644 --- a/tests/glslparsertest/glsl2/redeclaration-07.vert +++ b/tests/glslparsertest/glsl2/redeclaration-07.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - like redeclaration-06.vert, but now the other comes first */ void main() { diff --git a/tests/glslparsertest/glsl2/redeclaration-08.vert b/tests/glslparsertest/glsl2/redeclaration-08.vert index 4c37afb1d..db1e5bc91 100644 --- a/tests/glslparsertest/glsl2/redeclaration-08.vert +++ b/tests/glslparsertest/glsl2/redeclaration-08.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - like struct-01.vert, but now the other comes first */ struct foo { diff --git a/tests/glslparsertest/glsl2/redeclaration-09.vert b/tests/glslparsertest/glsl2/redeclaration-09.vert index 3d588f7a6..531f6aa6e 100644 --- a/tests/glslparsertest/glsl2/redeclaration-09.vert +++ b/tests/glslparsertest/glsl2/redeclaration-09.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - variables and functions have separate namespaces in 1.10. * * See also redeclaration-02.vert (other order) and redeclaration-10.vert diff --git a/tests/glslparsertest/glsl2/redeclaration-10.vert b/tests/glslparsertest/glsl2/redeclaration-10.vert index 6af36f173..5f79df1a5 100644 --- a/tests/glslparsertest/glsl2/redeclaration-10.vert +++ b/tests/glslparsertest/glsl2/redeclaration-10.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - variable name conflicts with function name in same scope * * See also redeclaration-09.vert (passes in 1.10) and redeclaration-11.vert diff --git a/tests/glslparsertest/glsl2/redeclaration-11.vert b/tests/glslparsertest/glsl2/redeclaration-11.vert index 4f3d853f6..b566cad24 100644 --- a/tests/glslparsertest/glsl2/redeclaration-11.vert +++ b/tests/glslparsertest/glsl2/redeclaration-11.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - in 1.20, variables hide functions, so the call is illegal. */ #version 120 diff --git a/tests/glslparsertest/glsl2/redeclaration-12.vert b/tests/glslparsertest/glsl2/redeclaration-12.vert index d547e50ce..19dcd4a63 100644 --- a/tests/glslparsertest/glsl2/redeclaration-12.vert +++ b/tests/glslparsertest/glsl2/redeclaration-12.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - built-in exp is outside the global scope */ struct exp { bvec4 bs; diff --git a/tests/glslparsertest/glsl2/redeclaration-13.vert b/tests/glslparsertest/glsl2/redeclaration-13.vert index ed2eda22d..761edb32b 100644 --- a/tests/glslparsertest/glsl2/redeclaration-13.vert +++ b/tests/glslparsertest/glsl2/redeclaration-13.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - built-in exp is hidden by the structure */ struct exp { bvec4 bs; diff --git a/tests/glslparsertest/glsl2/redeclaration-14.vert b/tests/glslparsertest/glsl2/redeclaration-14.vert index 2d7667b9b..5de17b6c4 100644 --- a/tests/glslparsertest/glsl2/redeclaration-14.vert +++ b/tests/glslparsertest/glsl2/redeclaration-14.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - built-in exp is outside the global scope */ #version 120 uniform float exp; diff --git a/tests/glslparsertest/glsl2/redeclaration-15.vert b/tests/glslparsertest/glsl2/redeclaration-15.vert index 1b831e08b..6aa1226ca 100644 --- a/tests/glslparsertest/glsl2/redeclaration-15.vert +++ b/tests/glslparsertest/glsl2/redeclaration-15.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - built-in exp hidden by variable */ #version 120 uniform float exp; diff --git a/tests/glslparsertest/glsl2/redeclaration-16.vert b/tests/glslparsertest/glsl2/redeclaration-16.vert index f08d3bea5..f1443a97b 100644 --- a/tests/glslparsertest/glsl2/redeclaration-16.vert +++ b/tests/glslparsertest/glsl2/redeclaration-16.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS - built-in exp is outside the global scope * * See also redeclaration-04.vert. diff --git a/tests/glslparsertest/glsl2/redeclaration-17.vert b/tests/glslparsertest/glsl2/redeclaration-17.vert index 163ee4073..c53f50c8a 100644 --- a/tests/glslparsertest/glsl2/redeclaration-17.vert +++ b/tests/glslparsertest/glsl2/redeclaration-17.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - id(5) should be the struct constructor, not the function */ int id(int x) { diff --git a/tests/glslparsertest/glsl2/redeclaration-18.vert b/tests/glslparsertest/glsl2/redeclaration-18.vert index 8a8e800dc..ddbd845aa 100644 --- a/tests/glslparsertest/glsl2/redeclaration-18.vert +++ b/tests/glslparsertest/glsl2/redeclaration-18.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - variable hides type constructor */ uniform bool condition; diff --git a/tests/glslparsertest/glsl2/redeclaration-19.vert b/tests/glslparsertest/glsl2/redeclaration-19.vert index 7cb9e2663..d4d702b04 100644 --- a/tests/glslparsertest/glsl2/redeclaration-19.vert +++ b/tests/glslparsertest/glsl2/redeclaration-19.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - variable hides type name */ uniform bool condition; diff --git a/tests/glslparsertest/glsl2/return-conversion-2.frag b/tests/glslparsertest/glsl2/return-conversion-2.frag index 60da7e7fa..5d9ce79c2 100644 --- a/tests/glslparsertest/glsl2/return-conversion-2.frag +++ b/tests/glslparsertest/glsl2/return-conversion-2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - no implicit conversions for return values */ vec2 foo() { diff --git a/tests/glslparsertest/glsl2/return-conversion.frag b/tests/glslparsertest/glsl2/return-conversion.frag index f02ea9bc2..a0be87a59 100644 --- a/tests/glslparsertest/glsl2/return-conversion.frag +++ b/tests/glslparsertest/glsl2/return-conversion.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - no implicit conversions for return values */ float foo() { diff --git a/tests/glslparsertest/glsl2/return-qualifier.frag b/tests/glslparsertest/glsl2/return-qualifier.frag index 16c51a8ac..886d54352 100644 --- a/tests/glslparsertest/glsl2/return-qualifier.frag +++ b/tests/glslparsertest/glsl2/return-qualifier.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - return types cannot have qualifiers */ const float one() { diff --git a/tests/glslparsertest/glsl2/sampler-01.frag b/tests/glslparsertest/glsl2/sampler-01.frag index d9273802b..a6c54d2ec 100644 --- a/tests/glslparsertest/glsl2/sampler-01.frag +++ b/tests/glslparsertest/glsl2/sampler-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 17 (page 23 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/sampler-02.frag b/tests/glslparsertest/glsl2/sampler-02.frag index 812f35698..62c03e507 100644 --- a/tests/glslparsertest/glsl2/sampler-02.frag +++ b/tests/glslparsertest/glsl2/sampler-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 17 (page 23 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/sampler-03.frag b/tests/glslparsertest/glsl2/sampler-03.frag index 1ba24e2c6..e4a94d139 100644 --- a/tests/glslparsertest/glsl2/sampler-03.frag +++ b/tests/glslparsertest/glsl2/sampler-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 17 (page 23 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/sampler-04.frag b/tests/glslparsertest/glsl2/sampler-04.frag index 0ad74641c..22b1b2444 100644 --- a/tests/glslparsertest/glsl2/sampler-04.frag +++ b/tests/glslparsertest/glsl2/sampler-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 17 (page 23 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/sampler-05.frag b/tests/glslparsertest/glsl2/sampler-05.frag index 038bc23c2..45cdf13ca 100644 --- a/tests/glslparsertest/glsl2/sampler-05.frag +++ b/tests/glslparsertest/glsl2/sampler-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 17 (page 23 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/sampler-06.frag b/tests/glslparsertest/glsl2/sampler-06.frag index 784a0a2af..76a2bbfb8 100644 --- a/tests/glslparsertest/glsl2/sampler-06.frag +++ b/tests/glslparsertest/glsl2/sampler-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * * From page 17 (page 23 of the PDF) of the GLSL 1.20 spec: diff --git a/tests/glslparsertest/glsl2/scoping-01.frag b/tests/glslparsertest/glsl2/scoping-01.frag index 8f332af46..d95fba785 100644 --- a/tests/glslparsertest/glsl2/scoping-01.frag +++ b/tests/glslparsertest/glsl2/scoping-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { if (true) diff --git a/tests/glslparsertest/glsl2/scoping-02.frag b/tests/glslparsertest/glsl2/scoping-02.frag index 37cbba022..b9f0774c8 100644 --- a/tests/glslparsertest/glsl2/scoping-02.frag +++ b/tests/glslparsertest/glsl2/scoping-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { if (true) diff --git a/tests/glslparsertest/glsl2/struct-01.vert b/tests/glslparsertest/glsl2/struct-01.vert index 223bccd93..0b18953d2 100644 --- a/tests/glslparsertest/glsl2/struct-01.vert +++ b/tests/glslparsertest/glsl2/struct-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - structure name conflicts with function name */ vec4 foo(vec4 a, vec4 b) diff --git a/tests/glslparsertest/glsl2/struct-02.vert b/tests/glslparsertest/glsl2/struct-02.vert index 80793624e..5a2c29125 100644 --- a/tests/glslparsertest/glsl2/struct-02.vert +++ b/tests/glslparsertest/glsl2/struct-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - structure name conflicts with another structure */ struct foo { diff --git a/tests/glslparsertest/glsl2/struct-03.vert b/tests/glslparsertest/glsl2/struct-03.vert index 7e28ddfce..d6964e934 100644 --- a/tests/glslparsertest/glsl2/struct-03.vert +++ b/tests/glslparsertest/glsl2/struct-03.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ vec4 foo(vec4 a, vec4 b) diff --git a/tests/glslparsertest/glsl2/struct-04.vert b/tests/glslparsertest/glsl2/struct-04.vert index e006b0c78..ab842f91d 100644 --- a/tests/glslparsertest/glsl2/struct-04.vert +++ b/tests/glslparsertest/glsl2/struct-04.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ struct foo { diff --git a/tests/glslparsertest/glsl2/struct-05.vert b/tests/glslparsertest/glsl2/struct-05.vert index 96bc76f90..42094b547 100644 --- a/tests/glslparsertest/glsl2/struct-05.vert +++ b/tests/glslparsertest/glsl2/struct-05.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - structure name conflicts with variable name in same scope */ uniform vec4 foo; diff --git a/tests/glslparsertest/glsl2/struct-06.frag b/tests/glslparsertest/glsl2/struct-06.frag index 8181eee82..21dc7997d 100644 --- a/tests/glslparsertest/glsl2/struct-06.frag +++ b/tests/glslparsertest/glsl2/struct-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ struct str { diff --git a/tests/glslparsertest/glsl2/swiz-01.vert b/tests/glslparsertest/glsl2/swiz-01.vert index 011d24857..464360798 100644 --- a/tests/glslparsertest/glsl2/swiz-01.vert +++ b/tests/glslparsertest/glsl2/swiz-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ void main() { diff --git a/tests/glslparsertest/glsl2/swiz-02.vert b/tests/glslparsertest/glsl2/swiz-02.vert index 5f31316a6..528ed2a69 100644 --- a/tests/glslparsertest/glsl2/swiz-02.vert +++ b/tests/glslparsertest/glsl2/swiz-02.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL: assignment of a vec2 to a float */ void main() { diff --git a/tests/glslparsertest/glsl2/tex_lod-01.frag b/tests/glslparsertest/glsl2/tex_lod-01.frag index b2836911c..9be11ba5c 100644 --- a/tests/glslparsertest/glsl2/tex_lod-01.frag +++ b/tests/glslparsertest/glsl2/tex_lod-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-02.frag b/tests/glslparsertest/glsl2/tex_lod-02.frag index cbb85a0dc..f957360e1 100644 --- a/tests/glslparsertest/glsl2/tex_lod-02.frag +++ b/tests/glslparsertest/glsl2/tex_lod-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-03.frag b/tests/glslparsertest/glsl2/tex_lod-03.frag index d9adc6b55..0918db646 100644 --- a/tests/glslparsertest/glsl2/tex_lod-03.frag +++ b/tests/glslparsertest/glsl2/tex_lod-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-04.frag b/tests/glslparsertest/glsl2/tex_lod-04.frag index deec1c889..fe1956396 100644 --- a/tests/glslparsertest/glsl2/tex_lod-04.frag +++ b/tests/glslparsertest/glsl2/tex_lod-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-05.frag b/tests/glslparsertest/glsl2/tex_lod-05.frag index 3d3acb45e..3c6cf2834 100644 --- a/tests/glslparsertest/glsl2/tex_lod-05.frag +++ b/tests/glslparsertest/glsl2/tex_lod-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-06.frag b/tests/glslparsertest/glsl2/tex_lod-06.frag index 9c03a2d7f..b50304f4d 100644 --- a/tests/glslparsertest/glsl2/tex_lod-06.frag +++ b/tests/glslparsertest/glsl2/tex_lod-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-07.frag b/tests/glslparsertest/glsl2/tex_lod-07.frag index 9f67a8f7e..819b5d8ae 100644 --- a/tests/glslparsertest/glsl2/tex_lod-07.frag +++ b/tests/glslparsertest/glsl2/tex_lod-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-08.frag b/tests/glslparsertest/glsl2/tex_lod-08.frag index 1a50a6bc6..ed989b892 100644 --- a/tests/glslparsertest/glsl2/tex_lod-08.frag +++ b/tests/glslparsertest/glsl2/tex_lod-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-09.frag b/tests/glslparsertest/glsl2/tex_lod-09.frag index 754de8a57..13cbdbded 100644 --- a/tests/glslparsertest/glsl2/tex_lod-09.frag +++ b/tests/glslparsertest/glsl2/tex_lod-09.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-10.frag b/tests/glslparsertest/glsl2/tex_lod-10.frag index cd9fb0d18..e337d2bbc 100644 --- a/tests/glslparsertest/glsl2/tex_lod-10.frag +++ b/tests/glslparsertest/glsl2/tex_lod-10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-11.frag b/tests/glslparsertest/glsl2/tex_lod-11.frag index 08b9ff31b..6bc5d1f58 100644 --- a/tests/glslparsertest/glsl2/tex_lod-11.frag +++ b/tests/glslparsertest/glsl2/tex_lod-11.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-12.frag b/tests/glslparsertest/glsl2/tex_lod-12.frag index 7ce128745..7a43cc69e 100644 --- a/tests/glslparsertest/glsl2/tex_lod-12.frag +++ b/tests/glslparsertest/glsl2/tex_lod-12.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_lod-13.frag b/tests/glslparsertest/glsl2/tex_lod-13.frag index fc274502c..6b3ec4b3e 100644 --- a/tests/glslparsertest/glsl2/tex_lod-13.frag +++ b/tests/glslparsertest/glsl2/tex_lod-13.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL * Without GLSL 1.40 or GL_ARB_shader_texture_lod, the "Lod" versions of the * texture lookup functions are not available in fragment shaders. diff --git a/tests/glslparsertest/glsl2/tex_rect-01.frag b/tests/glslparsertest/glsl2/tex_rect-01.frag index 22216cbfb..bdddb4997 100644 --- a/tests/glslparsertest/glsl2/tex_rect-01.frag +++ b/tests/glslparsertest/glsl2/tex_rect-01.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform sampler2DRect s; diff --git a/tests/glslparsertest/glsl2/tex_rect-02.frag b/tests/glslparsertest/glsl2/tex_rect-02.frag index c11d6a950..9a51cef19 100644 --- a/tests/glslparsertest/glsl2/tex_rect-02.frag +++ b/tests/glslparsertest/glsl2/tex_rect-02.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL */ #extension GL_ARB_texture_rectangle: disable diff --git a/tests/glslparsertest/glsl2/tex_rect-03.frag b/tests/glslparsertest/glsl2/tex_rect-03.frag index b11cd5c06..ab2376adf 100644 --- a/tests/glslparsertest/glsl2/tex_rect-03.frag +++ b/tests/glslparsertest/glsl2/tex_rect-03.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #ifndef GL_ARB_texture_rectangle /* Since there is no #error in GLSL, this is a sure way to generate an diff --git a/tests/glslparsertest/glsl2/tex_rect-04.frag b/tests/glslparsertest/glsl2/tex_rect-04.frag index 4b94c54ad..d7bd22a1a 100644 --- a/tests/glslparsertest/glsl2/tex_rect-04.frag +++ b/tests/glslparsertest/glsl2/tex_rect-04.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform sampler2DRect s; varying vec2 coord; diff --git a/tests/glslparsertest/glsl2/tex_rect-05.frag b/tests/glslparsertest/glsl2/tex_rect-05.frag index d6f80a22f..5d547eda8 100644 --- a/tests/glslparsertest/glsl2/tex_rect-05.frag +++ b/tests/glslparsertest/glsl2/tex_rect-05.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform sampler2DRect s; varying vec3 coord; diff --git a/tests/glslparsertest/glsl2/tex_rect-06.frag b/tests/glslparsertest/glsl2/tex_rect-06.frag index 85109e548..6bce4ca46 100644 --- a/tests/glslparsertest/glsl2/tex_rect-06.frag +++ b/tests/glslparsertest/glsl2/tex_rect-06.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform sampler2DRect s; varying vec4 coord; diff --git a/tests/glslparsertest/glsl2/tex_rect-07.frag b/tests/glslparsertest/glsl2/tex_rect-07.frag index 2d333f46a..0a113143a 100644 --- a/tests/glslparsertest/glsl2/tex_rect-07.frag +++ b/tests/glslparsertest/glsl2/tex_rect-07.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform sampler2DRectShadow s; varying vec3 coord; diff --git a/tests/glslparsertest/glsl2/tex_rect-08.frag b/tests/glslparsertest/glsl2/tex_rect-08.frag index 83f9bcbc8..a2d56e012 100644 --- a/tests/glslparsertest/glsl2/tex_rect-08.frag +++ b/tests/glslparsertest/glsl2/tex_rect-08.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ uniform sampler2DRectShadow s; varying vec4 coord; diff --git a/tests/glslparsertest/glsl2/unary-plus.frag b/tests/glslparsertest/glsl2/unary-plus.frag index 8a7ef4a3a..1d4184118 100644 --- a/tests/glslparsertest/glsl2/unary-plus.frag +++ b/tests/glslparsertest/glsl2/unary-plus.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* Ensure that a unary-plus operator works. */ void main(void) diff --git a/tests/glslparsertest/glsl2/uniform-01.vert b/tests/glslparsertest/glsl2/uniform-01.vert index 47bf55334..694fc281b 100644 --- a/tests/glslparsertest/glsl2/uniform-01.vert +++ b/tests/glslparsertest/glsl2/uniform-01.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.20 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* PASS */ #version 120 uniform vec2 a = vec2(1.0, 2.0); diff --git a/tests/glslparsertest/glsl2/uniform-02.vert b/tests/glslparsertest/glsl2/uniform-02.vert index 2c2edd551..b5152965c 100644 --- a/tests/glslparsertest/glsl2/uniform-02.vert +++ b/tests/glslparsertest/glsl2/uniform-02.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - uniform initializers not allowed in GLSL 1.10 */ uniform vec2 a = vec2(1.0, 2.0); diff --git a/tests/glslparsertest/glsl2/unsized-array-non-const-index-2.vert b/tests/glslparsertest/glsl2/unsized-array-non-const-index-2.vert index 5a1bda60d..bc65bdcb9 100644 --- a/tests/glslparsertest/glsl2/unsized-array-non-const-index-2.vert +++ b/tests/glslparsertest/glsl2/unsized-array-non-const-index-2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + const float n = 1; void main() { diff --git a/tests/glslparsertest/glsl2/unsized-array-non-const-index.vert b/tests/glslparsertest/glsl2/unsized-array-non-const-index.vert index 00db08e9d..e146722d1 100644 --- a/tests/glslparsertest/glsl2/unsized-array-non-const-index.vert +++ b/tests/glslparsertest/glsl2/unsized-array-non-const-index.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform int n; void main() { diff --git a/tests/glslparsertest/glsl2/void-01.vert b/tests/glslparsertest/glsl2/void-01.vert index 5719edc0b..311f0d5ed 100644 --- a/tests/glslparsertest/glsl2/void-01.vert +++ b/tests/glslparsertest/glsl2/void-01.vert @@ -1,2 +1,11 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* FAIL - cannot declare a variable as having type `void' */ void foo; diff --git a/tests/glslparsertest/glsl2/xonotic-vs-generic-diffuse.vert b/tests/glslparsertest/glsl2/xonotic-vs-generic-diffuse.vert index 48f97a4be..039ce6b11 100644 --- a/tests/glslparsertest/glsl2/xonotic-vs-generic-diffuse.vert +++ b/tests/glslparsertest/glsl2/xonotic-vs-generic-diffuse.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* Copyright (C) 1996-1997 Id Software, Inc. diff --git a/tests/glslparsertest/glsl2/xreal-lighting-d-omni.frag b/tests/glslparsertest/glsl2/xreal-lighting-d-omni.frag index 4380fc086..e386e5b03 100644 --- a/tests/glslparsertest/glsl2/xreal-lighting-d-omni.frag +++ b/tests/glslparsertest/glsl2/xreal-lighting-d-omni.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* =========================================================================== Copyright (C) 2006 Robert Beckebans <trebor_7@users.sourceforge.net> diff --git a/tests/glslparsertest/glsl2/xreal-lighting-d-omni.vert b/tests/glslparsertest/glsl2/xreal-lighting-d-omni.vert index 801821ade..6571aae47 100644 --- a/tests/glslparsertest/glsl2/xreal-lighting-d-omni.vert +++ b/tests/glslparsertest/glsl2/xreal-lighting-d-omni.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* =========================================================================== Copyright (C) 2006 Robert Beckebans <trebor_7@users.sourceforge.net> diff --git a/tests/glslparsertest/glsl2/xreal-lighting-db-omni.frag b/tests/glslparsertest/glsl2/xreal-lighting-db-omni.frag index 04f29cc56..e6e512fb6 100644 --- a/tests/glslparsertest/glsl2/xreal-lighting-db-omni.frag +++ b/tests/glslparsertest/glsl2/xreal-lighting-db-omni.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* =========================================================================== Copyright (C) 2006 Robert Beckebans <trebor_7@users.sourceforge.net> diff --git a/tests/glslparsertest/glsl2/xreal-lighting-db-omni.vert b/tests/glslparsertest/glsl2/xreal-lighting-db-omni.vert index ababf5743..d6c78da07 100644 --- a/tests/glslparsertest/glsl2/xreal-lighting-db-omni.vert +++ b/tests/glslparsertest/glsl2/xreal-lighting-db-omni.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* =========================================================================== Copyright (C) 2006 Robert Beckebans <trebor_7@users.sourceforge.net> diff --git a/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.frag b/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.frag index 7444aa22b..5e087970c 100644 --- a/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.frag +++ b/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* =========================================================================== Copyright (C) 2006 Robert Beckebans <trebor_7@users.sourceforge.net> diff --git a/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.vert b/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.vert index 0ba52332c..c1a0284f2 100644 --- a/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.vert +++ b/tests/glslparsertest/glsl2/xreal-lighting-dbs-omni.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* =========================================================================== Copyright (C) 2006 Robert Beckebans <trebor_7@users.sourceforge.net> diff --git a/tests/glslparsertest/shaders/CGDataTypes.frag b/tests/glslparsertest/shaders/CGDataTypes.frag index 5e64e8ed6..bda4a8192 100644 --- a/tests/glslparsertest/shaders/CGDataTypes.frag +++ b/tests/glslparsertest/shaders/CGDataTypes.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
half h1; // Not a basic type.
diff --git a/tests/glslparsertest/shaders/CGStandardLibrary.frag b/tests/glslparsertest/shaders/CGStandardLibrary.frag index 9adb52c52..b9b00dd27 100644 --- a/tests/glslparsertest/shaders/CGStandardLibrary.frag +++ b/tests/glslparsertest/shaders/CGStandardLibrary.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i = round(1.3); // round is not a built-in function.
diff --git a/tests/glslparsertest/shaders/ConstantConversions.frag b/tests/glslparsertest/shaders/ConstantConversions.frag index 466635cd2..9deeed6a3 100644 --- a/tests/glslparsertest/shaders/ConstantConversions.frag +++ b/tests/glslparsertest/shaders/ConstantConversions.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f = 2; // Should be 2.0
diff --git a/tests/glslparsertest/shaders/CorrectBuiltInOveride.frag b/tests/glslparsertest/shaders/CorrectBuiltInOveride.frag index 6bf7db2aa..94716fe79 100644 --- a/tests/glslparsertest/shaders/CorrectBuiltInOveride.frag +++ b/tests/glslparsertest/shaders/CorrectBuiltInOveride.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + float radians(float f)
{
return f;
diff --git a/tests/glslparsertest/shaders/CorrectComma.frag b/tests/glslparsertest/shaders/CorrectComma.frag index 402d25e58..69290c42b 100644 --- a/tests/glslparsertest/shaders/CorrectComma.frag +++ b/tests/glslparsertest/shaders/CorrectComma.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s { float f; vec3 v; diff --git a/tests/glslparsertest/shaders/CorrectConstFolding1.vert b/tests/glslparsertest/shaders/CorrectConstFolding1.vert index 0b1351f02..d50f96074 100644 --- a/tests/glslparsertest/shaders/CorrectConstFolding1.vert +++ b/tests/glslparsertest/shaders/CorrectConstFolding1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
diff --git a/tests/glslparsertest/shaders/CorrectConstFolding2.vert b/tests/glslparsertest/shaders/CorrectConstFolding2.vert index 04ab4302a..10526aa2d 100644 --- a/tests/glslparsertest/shaders/CorrectConstFolding2.vert +++ b/tests/glslparsertest/shaders/CorrectConstFolding2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const struct s {
diff --git a/tests/glslparsertest/shaders/CorrectConstruct.vert b/tests/glslparsertest/shaders/CorrectConstruct.vert index 57b65b041..a5c36466f 100644 --- a/tests/glslparsertest/shaders/CorrectConstruct.vert +++ b/tests/glslparsertest/shaders/CorrectConstruct.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
float f;
} s1 = s(1.0);
diff --git a/tests/glslparsertest/shaders/CorrectExtension1.V110.frag b/tests/glslparsertest/shaders/CorrectExtension1.V110.frag index a6a00ed36..f2210262f 100644 --- a/tests/glslparsertest/shaders/CorrectExtension1.V110.frag +++ b/tests/glslparsertest/shaders/CorrectExtension1.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension all : disable // no error in the program #extension all : warn // no error in the program diff --git a/tests/glslparsertest/shaders/CorrectExtension10.V110.frag b/tests/glslparsertest/shaders/CorrectExtension10.V110.frag index a8288573c..853ec09e0 100644 --- a/tests/glslparsertest/shaders/CorrectExtension10.V110.frag +++ b/tests/glslparsertest/shaders/CorrectExtension10.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 110
#extension extensionfoo : enable // warning extension not supported
#extension extensionfoo : disable // warning extension not supported
diff --git a/tests/glslparsertest/shaders/CorrectExtension4.V110.frag b/tests/glslparsertest/shaders/CorrectExtension4.V110.frag index 72eee884e..ebf1a16eb 100644 --- a/tests/glslparsertest/shaders/CorrectExtension4.V110.frag +++ b/tests/glslparsertest/shaders/CorrectExtension4.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension extensionfoo : enable // warning extension not supported
#extension extensionfoo : disable // warning extension not supported
#extension extensionfoo : warn // warning extension not supported
diff --git a/tests/glslparsertest/shaders/CorrectFull.frag b/tests/glslparsertest/shaders/CorrectFull.frag index 0a05bda99..a3f1fe9c6 100644 --- a/tests/glslparsertest/shaders/CorrectFull.frag +++ b/tests/glslparsertest/shaders/CorrectFull.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void test_function(in int in_int, inout int out_int);
int test_function1(in int in_int, inout int out_int);
diff --git a/tests/glslparsertest/shaders/CorrectFull.vert b/tests/glslparsertest/shaders/CorrectFull.vert index 4fd9360aa..7a56f463d 100644 --- a/tests/glslparsertest/shaders/CorrectFull.vert +++ b/tests/glslparsertest/shaders/CorrectFull.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void test_function(const in int in_int, inout int out_int);
int test_function1(in int in_int, inout int out_int);
diff --git a/tests/glslparsertest/shaders/CorrectFuncOverload.frag b/tests/glslparsertest/shaders/CorrectFuncOverload.frag index 346d02005..8163ce690 100644 --- a/tests/glslparsertest/shaders/CorrectFuncOverload.frag +++ b/tests/glslparsertest/shaders/CorrectFuncOverload.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void testVoid (vec4 v, vec4 v1)
{
}
diff --git a/tests/glslparsertest/shaders/CorrectFuncOverload.vert b/tests/glslparsertest/shaders/CorrectFuncOverload.vert index e21e12b40..097cdf08a 100644 --- a/tests/glslparsertest/shaders/CorrectFuncOverload.vert +++ b/tests/glslparsertest/shaders/CorrectFuncOverload.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct S2
{
float f;
@@ -26,4 +35,4 @@ float process(S1 s1) float process(S2 s2)
{
return s2.f;
-}
\ No newline at end of file +} diff --git a/tests/glslparsertest/shaders/CorrectFunction.vert b/tests/glslparsertest/shaders/CorrectFunction.vert index 6e8dc7621..b8873b35e 100644 --- a/tests/glslparsertest/shaders/CorrectFunction.vert +++ b/tests/glslparsertest/shaders/CorrectFunction.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform sampler1D sampler;
uniform sampler2D sampler2;
uniform sampler3D sampler3;
diff --git a/tests/glslparsertest/shaders/CorrectFunction1.vert b/tests/glslparsertest/shaders/CorrectFunction1.vert index 66e7c05b5..83f32eda9 100644 --- a/tests/glslparsertest/shaders/CorrectFunction1.vert +++ b/tests/glslparsertest/shaders/CorrectFunction1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + vec3 bar(vec3, vec3);
uniform vec2 v;
diff --git a/tests/glslparsertest/shaders/CorrectMatComma.frag b/tests/glslparsertest/shaders/CorrectMatComma.frag index 2852a4def..156155c58 100644 --- a/tests/glslparsertest/shaders/CorrectMatComma.frag +++ b/tests/glslparsertest/shaders/CorrectMatComma.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat4 tempMat = mat4(1,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0); diff --git a/tests/glslparsertest/shaders/CorrectMatComma2.frag b/tests/glslparsertest/shaders/CorrectMatComma2.frag index 0af488287..08ddd97aa 100644 --- a/tests/glslparsertest/shaders/CorrectMatComma2.frag +++ b/tests/glslparsertest/shaders/CorrectMatComma2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const mat4 tempMat = mat4(1,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0); diff --git a/tests/glslparsertest/shaders/CorrectModule.frag b/tests/glslparsertest/shaders/CorrectModule.frag index 3a97b2492..e1cb2d593 100644 --- a/tests/glslparsertest/shaders/CorrectModule.frag +++ b/tests/glslparsertest/shaders/CorrectModule.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + vec4 test_function4(float);
vec4 test_function1(float);
vec4 test_function2(float);
diff --git a/tests/glslparsertest/shaders/CorrectParse1.frag b/tests/glslparsertest/shaders/CorrectParse1.frag index 53b94b982..03ae5c3ba 100644 --- a/tests/glslparsertest/shaders/CorrectParse1.frag +++ b/tests/glslparsertest/shaders/CorrectParse1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform vec3 a[8];
uniform bool ub;
diff --git a/tests/glslparsertest/shaders/CorrectParse2.frag b/tests/glslparsertest/shaders/CorrectParse2.frag index e1f855d2f..edf1d68cd 100644 --- a/tests/glslparsertest/shaders/CorrectParse2.frag +++ b/tests/glslparsertest/shaders/CorrectParse2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + const float FloatConst1 = 3.0 * 8.0, floatConst2 = 4.0;
const bool BoolConst1 = true && true || false;
const bool BoolConst2 = false || !false && false;
diff --git a/tests/glslparsertest/shaders/CorrectParse2.vert b/tests/glslparsertest/shaders/CorrectParse2.vert index ba48944b3..68fc51bb0 100644 --- a/tests/glslparsertest/shaders/CorrectParse2.vert +++ b/tests/glslparsertest/shaders/CorrectParse2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + const float FloatConst1 = 3.0 * 8.0, floatConst2 = 4.0;
const bool BoolConst1 = true && true || false;
const bool BoolConst2 = false || !false && false;
diff --git a/tests/glslparsertest/shaders/CorrectParseTest.frag b/tests/glslparsertest/shaders/CorrectParseTest.frag index 0905c354c..0ee187bd7 100644 --- a/tests/glslparsertest/shaders/CorrectParseTest.frag +++ b/tests/glslparsertest/shaders/CorrectParseTest.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s{
float f;
vec3 v;
diff --git a/tests/glslparsertest/shaders/CorrectParseTest1.frag b/tests/glslparsertest/shaders/CorrectParseTest1.frag index 420db3030..0ec37488c 100644 --- a/tests/glslparsertest/shaders/CorrectParseTest1.frag +++ b/tests/glslparsertest/shaders/CorrectParseTest1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s { vec4 v; } s2; diff --git a/tests/glslparsertest/shaders/CorrectPreprocess5.frag b/tests/glslparsertest/shaders/CorrectPreprocess5.frag index cb83dbad2..c8edfa138 100644 --- a/tests/glslparsertest/shaders/CorrectPreprocess5.frag +++ b/tests/glslparsertest/shaders/CorrectPreprocess5.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + //mutiple line macros - test case.
#define test 5
diff --git a/tests/glslparsertest/shaders/CorrectPreprocess8.frag b/tests/glslparsertest/shaders/CorrectPreprocess8.frag index e5a6c7c2a..0aa911636 100644 --- a/tests/glslparsertest/shaders/CorrectPreprocess8.frag +++ b/tests/glslparsertest/shaders/CorrectPreprocess8.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // Extensive testing on #if #else #elif #ifdef, #ifndef and #endif.
diff --git a/tests/glslparsertest/shaders/CorrectPreprocess9.frag b/tests/glslparsertest/shaders/CorrectPreprocess9.frag index a391c202c..468258ae7 100644 --- a/tests/glslparsertest/shaders/CorrectPreprocess9.frag +++ b/tests/glslparsertest/shaders/CorrectPreprocess9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #define t1 2.3333333333333333
#define t2 (0.978293600-1.0)
#define t3 .9090909090
diff --git a/tests/glslparsertest/shaders/CorrectReservedWords.frag b/tests/glslparsertest/shaders/CorrectReservedWords.frag index 750de5e06..9fdcafa6a 100644 --- a/tests/glslparsertest/shaders/CorrectReservedWords.frag +++ b/tests/glslparsertest/shaders/CorrectReservedWords.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform float MIN;
uniform float R0;
uniform float FOGC;
diff --git a/tests/glslparsertest/shaders/CorrectScalarVectorExpressions.frag b/tests/glslparsertest/shaders/CorrectScalarVectorExpressions.frag index 05de1de77..a676e9740 100644 --- a/tests/glslparsertest/shaders/CorrectScalarVectorExpressions.frag +++ b/tests/glslparsertest/shaders/CorrectScalarVectorExpressions.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v = vec2(1.0, 2.0);
diff --git a/tests/glslparsertest/shaders/CorrectSwizzle1.frag b/tests/glslparsertest/shaders/CorrectSwizzle1.frag index cc73a8b68..0d50a2261 100644 --- a/tests/glslparsertest/shaders/CorrectSwizzle1.frag +++ b/tests/glslparsertest/shaders/CorrectSwizzle1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v = vec2(1,5);
diff --git a/tests/glslparsertest/shaders/CorrectSwizzle1.vert b/tests/glslparsertest/shaders/CorrectSwizzle1.vert index a595b9f52..fd6b50ab8 100644 --- a/tests/glslparsertest/shaders/CorrectSwizzle1.vert +++ b/tests/glslparsertest/shaders/CorrectSwizzle1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main(void)
{
vec4 v = vec4(1,2,3,4);
diff --git a/tests/glslparsertest/shaders/CorrectSwizzle2.frag b/tests/glslparsertest/shaders/CorrectSwizzle2.frag index 0d0b58071..59bec2108 100644 --- a/tests/glslparsertest/shaders/CorrectSwizzle2.frag +++ b/tests/glslparsertest/shaders/CorrectSwizzle2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f, f1, f2;
diff --git a/tests/glslparsertest/shaders/CorrectSwizzle2.vert b/tests/glslparsertest/shaders/CorrectSwizzle2.vert index 26899f309..d763ccf84 100644 --- a/tests/glslparsertest/shaders/CorrectSwizzle2.vert +++ b/tests/glslparsertest/shaders/CorrectSwizzle2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec4 v1 = vec4(5,6,7,8);
diff --git a/tests/glslparsertest/shaders/CorrectSwizzle3.frag b/tests/glslparsertest/shaders/CorrectSwizzle3.frag index 9e57d6932..7bf9ebd5f 100644 --- a/tests/glslparsertest/shaders/CorrectSwizzle3.frag +++ b/tests/glslparsertest/shaders/CorrectSwizzle3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec4 v = vec4(5,6,7,8);
diff --git a/tests/glslparsertest/shaders/CorrectUnsizedArray.frag b/tests/glslparsertest/shaders/CorrectUnsizedArray.frag index 0a44b4409..256c7f8d0 100644 --- a/tests/glslparsertest/shaders/CorrectUnsizedArray.frag +++ b/tests/glslparsertest/shaders/CorrectUnsizedArray.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + int array[2];
varying vec4 gl_TexCoord[];
varying vec4 gl_TexCoord[2];
diff --git a/tests/glslparsertest/shaders/CorrectVersion.V110.frag b/tests/glslparsertest/shaders/CorrectVersion.V110.frag index 3a7d8fefe..01133f518 100644 --- a/tests/glslparsertest/shaders/CorrectVersion.V110.frag +++ b/tests/glslparsertest/shaders/CorrectVersion.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* #version can only be followed by number 110. The only statements before #version can be comment or white spaces */ diff --git a/tests/glslparsertest/shaders/CorrectVersion1.V110.frag b/tests/glslparsertest/shaders/CorrectVersion1.V110.frag index 1dda65af1..e938703e0 100644 --- a/tests/glslparsertest/shaders/CorrectVersion1.V110.frag +++ b/tests/glslparsertest/shaders/CorrectVersion1.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* Only one version statement is allowed; two should raise an error. */ #version 110 #version 110 diff --git a/tests/glslparsertest/shaders/FunctionParam.vert b/tests/glslparsertest/shaders/FunctionParam.vert index ae86381c6..687e30bd9 100644 --- a/tests/glslparsertest/shaders/FunctionParam.vert +++ b/tests/glslparsertest/shaders/FunctionParam.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + int y = 1;
int foo(int, int b[y]) // array size should be constant
diff --git a/tests/glslparsertest/shaders/IncludeDirective.frag b/tests/glslparsertest/shaders/IncludeDirective.frag index 5fd26e745..15b3ec93f 100644 --- a/tests/glslparsertest/shaders/IncludeDirective.frag +++ b/tests/glslparsertest/shaders/IncludeDirective.frag @@ -1 +1,10 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #include "../shaders/TestInclude.frag"
diff --git a/tests/glslparsertest/shaders/MainParameters.vert b/tests/glslparsertest/shaders/MainParameters.vert index abf76b982..2ecc5831f 100644 --- a/tests/glslparsertest/shaders/MainParameters.vert +++ b/tests/glslparsertest/shaders/MainParameters.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main(vec4 position : POSITION)
{
gl_Position = position;
diff --git a/tests/glslparsertest/shaders/ParseTest3.frag b/tests/glslparsertest/shaders/ParseTest3.frag index 933161370..d9fb1685d 100644 --- a/tests/glslparsertest/shaders/ParseTest3.frag +++ b/tests/glslparsertest/shaders/ParseTest3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const vec4 v = vec4(normalize(vec4(1))); // builtIn functions do not return const
diff --git a/tests/glslparsertest/shaders/ParseTest4.frag b/tests/glslparsertest/shaders/ParseTest4.frag index 7cff1918f..5acee308e 100644 --- a/tests/glslparsertest/shaders/ParseTest4.frag +++ b/tests/glslparsertest/shaders/ParseTest4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { const vec4 v = vec2(2.0, 3.0); diff --git a/tests/glslparsertest/shaders/TernaryOp.frag b/tests/glslparsertest/shaders/TernaryOp.frag index dd36dba56..475924b83 100644 --- a/tests/glslparsertest/shaders/TernaryOp.frag +++ b/tests/glslparsertest/shaders/TernaryOp.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main() { mat4 m; diff --git a/tests/glslparsertest/shaders/TextureRectangleSamplers.frag b/tests/glslparsertest/shaders/TextureRectangleSamplers.frag index 5c50ea8b4..a278def3f 100644 --- a/tests/glslparsertest/shaders/TextureRectangleSamplers.frag +++ b/tests/glslparsertest/shaders/TextureRectangleSamplers.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform sampler2DRect samp;
void main()
diff --git a/tests/glslparsertest/shaders/array1.frag b/tests/glslparsertest/shaders/array1.frag index 9ab02e14f..76270916d 100644 --- a/tests/glslparsertest/shaders/array1.frag +++ b/tests/glslparsertest/shaders/array1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int array[2][2]; // two dimentional arrays are not allowed
diff --git a/tests/glslparsertest/shaders/array10.frag b/tests/glslparsertest/shaders/array10.frag index ddb60fe4f..f52872485 100644 --- a/tests/glslparsertest/shaders/array10.frag +++ b/tests/glslparsertest/shaders/array10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
diff --git a/tests/glslparsertest/shaders/array11.frag b/tests/glslparsertest/shaders/array11.frag index 80567356e..431d8c44e 100644 --- a/tests/glslparsertest/shaders/array11.frag +++ b/tests/glslparsertest/shaders/array11.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f[];
diff --git a/tests/glslparsertest/shaders/array2.frag b/tests/glslparsertest/shaders/array2.frag index c96f97b22..3b64810f8 100644 --- a/tests/glslparsertest/shaders/array2.frag +++ b/tests/glslparsertest/shaders/array2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const int array[2]; // cannot declare const arrays
diff --git a/tests/glslparsertest/shaders/array3.frag b/tests/glslparsertest/shaders/array3.frag index 5cfd2c762..65d83ebf5 100644 --- a/tests/glslparsertest/shaders/array3.frag +++ b/tests/glslparsertest/shaders/array3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int array1[2], array2[2];
diff --git a/tests/glslparsertest/shaders/array4.frag b/tests/glslparsertest/shaders/array4.frag index 4ea157343..45118cae0 100644 --- a/tests/glslparsertest/shaders/array4.frag +++ b/tests/glslparsertest/shaders/array4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f[-2]; // cannot declare arrays with negative size
diff --git a/tests/glslparsertest/shaders/array5.frag b/tests/glslparsertest/shaders/array5.frag index 11fc1209b..c0fe9d8a0 100644 --- a/tests/glslparsertest/shaders/array5.frag +++ b/tests/glslparsertest/shaders/array5.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i = 3;
diff --git a/tests/glslparsertest/shaders/array6.frag b/tests/glslparsertest/shaders/array6.frag index d3fa60301..157783231 100644 --- a/tests/glslparsertest/shaders/array6.frag +++ b/tests/glslparsertest/shaders/array6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const float index = 3.0;
diff --git a/tests/glslparsertest/shaders/array7.frag b/tests/glslparsertest/shaders/array7.frag index 6356ab330..7ccb10c3c 100644 --- a/tests/glslparsertest/shaders/array7.frag +++ b/tests/glslparsertest/shaders/array7.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f[5];
diff --git a/tests/glslparsertest/shaders/array8.frag b/tests/glslparsertest/shaders/array8.frag index ffe59e393..095e9087b 100644 --- a/tests/glslparsertest/shaders/array8.frag +++ b/tests/glslparsertest/shaders/array8.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f[5];
diff --git a/tests/glslparsertest/shaders/array9.frag b/tests/glslparsertest/shaders/array9.frag index 4647e8f3a..050e78afd 100644 --- a/tests/glslparsertest/shaders/array9.frag +++ b/tests/glslparsertest/shaders/array9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 array[2];
diff --git a/tests/glslparsertest/shaders/attribute.frag b/tests/glslparsertest/shaders/attribute.frag index 55267be8a..41b19ff9a 100644 --- a/tests/glslparsertest/shaders/attribute.frag +++ b/tests/glslparsertest/shaders/attribute.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
attribute float foo; // attributes can be declared at global scope in vertex shader only
diff --git a/tests/glslparsertest/shaders/attribute.vert b/tests/glslparsertest/shaders/attribute.vert index eab631bc4..30bee9851 100644 --- a/tests/glslparsertest/shaders/attribute.vert +++ b/tests/glslparsertest/shaders/attribute.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
attribute float foo; // attributes can be declared at a global scope only
diff --git a/tests/glslparsertest/shaders/attribute1.vert b/tests/glslparsertest/shaders/attribute1.vert index 119bd7e55..bd69f982a 100644 --- a/tests/glslparsertest/shaders/attribute1.vert +++ b/tests/glslparsertest/shaders/attribute1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + attribute int i; // attributes cannot be int or bool
void main()
diff --git a/tests/glslparsertest/shaders/attribute2.vert b/tests/glslparsertest/shaders/attribute2.vert index 9e5f4c846..8dc8438f1 100644 --- a/tests/glslparsertest/shaders/attribute2.vert +++ b/tests/glslparsertest/shaders/attribute2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + attribute float f[2]; // attributes cannot be arrays
void main()
diff --git a/tests/glslparsertest/shaders/break.frag b/tests/glslparsertest/shaders/break.frag index a7484a683..39c1818e1 100644 --- a/tests/glslparsertest/shaders/break.frag +++ b/tests/glslparsertest/shaders/break.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
break; // break keyword allowed only inside the loops
diff --git a/tests/glslparsertest/shaders/comma1.vert b/tests/glslparsertest/shaders/comma1.vert index 76fd0669e..91d95f929 100644 --- a/tests/glslparsertest/shaders/comma1.vert +++ b/tests/glslparsertest/shaders/comma1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i, j, k;
diff --git a/tests/glslparsertest/shaders/comma2.frag b/tests/glslparsertest/shaders/comma2.frag index f101822db..e15d31fb8 100644 --- a/tests/glslparsertest/shaders/comma2.frag +++ b/tests/glslparsertest/shaders/comma2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const vec4 v = (vec4(1,2,3,4), vec4(5,6,7,8), 1.2); // right most value of comma operator shoul be a vec4
diff --git a/tests/glslparsertest/shaders/comma2.vert b/tests/glslparsertest/shaders/comma2.vert index cb9479ff3..43e71ab4d 100644 --- a/tests/glslparsertest/shaders/comma2.vert +++ b/tests/glslparsertest/shaders/comma2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i, j, k;
diff --git a/tests/glslparsertest/shaders/comma3.vert b/tests/glslparsertest/shaders/comma3.vert index 631774f26..863ec7803 100644 --- a/tests/glslparsertest/shaders/comma3.vert +++ b/tests/glslparsertest/shaders/comma3.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i, j, k;
diff --git a/tests/glslparsertest/shaders/comment.frag b/tests/glslparsertest/shaders/comment.frag index 2f58a8717..1636e4c69 100644 --- a/tests/glslparsertest/shaders/comment.frag +++ b/tests/glslparsertest/shaders/comment.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
/****** // comment not closed
diff --git a/tests/glslparsertest/shaders/conditional1.frag b/tests/glslparsertest/shaders/conditional1.frag index 38a7b10fd..c831ba92d 100644 --- a/tests/glslparsertest/shaders/conditional1.frag +++ b/tests/glslparsertest/shaders/conditional1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f1,f2;
diff --git a/tests/glslparsertest/shaders/conditional2.frag b/tests/glslparsertest/shaders/conditional2.frag index 7e3ea6ccf..dd4e90032 100644 --- a/tests/glslparsertest/shaders/conditional2.frag +++ b/tests/glslparsertest/shaders/conditional2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f1,f2;
diff --git a/tests/glslparsertest/shaders/conditional3.frag b/tests/glslparsertest/shaders/conditional3.frag index b154483ee..af71794b3 100644 --- a/tests/glslparsertest/shaders/conditional3.frag +++ b/tests/glslparsertest/shaders/conditional3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f1,f2;
diff --git a/tests/glslparsertest/shaders/constFunc.frag b/tests/glslparsertest/shaders/constFunc.frag index fe4ba4ff2..911668c3c 100644 --- a/tests/glslparsertest/shaders/constFunc.frag +++ b/tests/glslparsertest/shaders/constFunc.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + vec2 func()
{
vec2 v;
diff --git a/tests/glslparsertest/shaders/constructor1.frag b/tests/glslparsertest/shaders/constructor1.frag index 32d44ba9f..0ffc3d5cf 100644 --- a/tests/glslparsertest/shaders/constructor1.frag +++ b/tests/glslparsertest/shaders/constructor1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec4 v = vec4(1,2,3); // insufficient data provided for constructor, 4 values are required
diff --git a/tests/glslparsertest/shaders/constructor2.frag b/tests/glslparsertest/shaders/constructor2.frag index d897e3025..d4abba9df 100644 --- a/tests/glslparsertest/shaders/constructor2.frag +++ b/tests/glslparsertest/shaders/constructor2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec3 v;
diff --git a/tests/glslparsertest/shaders/constructor3.V110.frag b/tests/glslparsertest/shaders/constructor3.V110.frag index cb768e0c5..f13bab31e 100644 --- a/tests/glslparsertest/shaders/constructor3.V110.frag +++ b/tests/glslparsertest/shaders/constructor3.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec3 v;
diff --git a/tests/glslparsertest/shaders/continue.frag b/tests/glslparsertest/shaders/continue.frag index e0e65b4c4..5fac3ec37 100644 --- a/tests/glslparsertest/shaders/continue.frag +++ b/tests/glslparsertest/shaders/continue.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
continue; // continue keyword allowed only inside the loops
diff --git a/tests/glslparsertest/shaders/dataType1.frag b/tests/glslparsertest/shaders/dataType1.frag index 17f26d84b..fa02b60db 100644 --- a/tests/glslparsertest/shaders/dataType1.frag +++ b/tests/glslparsertest/shaders/dataType1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
void v; // variable cannot be declared of the type void
diff --git a/tests/glslparsertest/shaders/dataType10.frag b/tests/glslparsertest/shaders/dataType10.frag index 2a8ea82b3..685d7153b 100644 --- a/tests/glslparsertest/shaders/dataType10.frag +++ b/tests/glslparsertest/shaders/dataType10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f;
diff --git a/tests/glslparsertest/shaders/dataType11.frag b/tests/glslparsertest/shaders/dataType11.frag index 54481eb86..257b5685e 100644 --- a/tests/glslparsertest/shaders/dataType11.frag +++ b/tests/glslparsertest/shaders/dataType11.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i = 08; // invalid octal number
diff --git a/tests/glslparsertest/shaders/dataType12.frag b/tests/glslparsertest/shaders/dataType12.frag index 7c20dfd3b..fb18ad226 100644 --- a/tests/glslparsertest/shaders/dataType12.frag +++ b/tests/glslparsertest/shaders/dataType12.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i = 0xa8g; // invalid hexadecimal number
diff --git a/tests/glslparsertest/shaders/dataType13.frag b/tests/glslparsertest/shaders/dataType13.frag index 904a6697f..b64d01926 100644 --- a/tests/glslparsertest/shaders/dataType13.frag +++ b/tests/glslparsertest/shaders/dataType13.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i = 1;
diff --git a/tests/glslparsertest/shaders/dataType19.frag b/tests/glslparsertest/shaders/dataType19.frag index 5238337da..cbf4bd712 100644 --- a/tests/glslparsertest/shaders/dataType19.frag +++ b/tests/glslparsertest/shaders/dataType19.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform sampler1D s;
void main()
{
diff --git a/tests/glslparsertest/shaders/dataType2.frag b/tests/glslparsertest/shaders/dataType2.frag index 6907cf2e3..e1df8c7ca 100644 --- a/tests/glslparsertest/shaders/dataType2.frag +++ b/tests/glslparsertest/shaders/dataType2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform sampler1D samp1;
uniform sampler1D samp2 = samp1; // uniforms are read only
diff --git a/tests/glslparsertest/shaders/dataType3.frag b/tests/glslparsertest/shaders/dataType3.frag index 8b9067454..f5c67babd 100644 --- a/tests/glslparsertest/shaders/dataType3.frag +++ b/tests/glslparsertest/shaders/dataType3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #version 110
/*
diff --git a/tests/glslparsertest/shaders/dataType4.frag b/tests/glslparsertest/shaders/dataType4.frag index 72293b2bf..cc37673d8 100644 --- a/tests/glslparsertest/shaders/dataType4.frag +++ b/tests/glslparsertest/shaders/dataType4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i = 1.0; // automatic type conversion does not take place, float cannot be converted to int
diff --git a/tests/glslparsertest/shaders/dataType5.frag b/tests/glslparsertest/shaders/dataType5.frag index 98b9d1647..61c5a0bcf 100644 --- a/tests/glslparsertest/shaders/dataType5.frag +++ b/tests/glslparsertest/shaders/dataType5.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f = 1; // int cannot be converted to float, use constructor to do the conversion explicitly
diff --git a/tests/glslparsertest/shaders/dataType6.frag b/tests/glslparsertest/shaders/dataType6.frag index a41a8c8bd..1405cb0b7 100644 --- a/tests/glslparsertest/shaders/dataType6.frag +++ b/tests/glslparsertest/shaders/dataType6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const float f; // constants must be initialized
diff --git a/tests/glslparsertest/shaders/dataType7.frag b/tests/glslparsertest/shaders/dataType7.frag index eed28682e..bd50582ea 100644 --- a/tests/glslparsertest/shaders/dataType7.frag +++ b/tests/glslparsertest/shaders/dataType7.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform float f;
void main()
{
diff --git a/tests/glslparsertest/shaders/dataType8.frag b/tests/glslparsertest/shaders/dataType8.frag index 2444efef5..4f668794c 100644 --- a/tests/glslparsertest/shaders/dataType8.frag +++ b/tests/glslparsertest/shaders/dataType8.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + varying float f;
void main()
{
diff --git a/tests/glslparsertest/shaders/dataType9.frag b/tests/glslparsertest/shaders/dataType9.frag index e7363a53c..6e0ec7c84 100644 --- a/tests/glslparsertest/shaders/dataType9.frag +++ b/tests/glslparsertest/shaders/dataType9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + varying float f;
void main()
{
diff --git a/tests/glslparsertest/shaders/dowhile.frag b/tests/glslparsertest/shaders/dowhile.frag index 7223a671f..f9d3258de 100644 --- a/tests/glslparsertest/shaders/dowhile.frag +++ b/tests/glslparsertest/shaders/dowhile.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f;
diff --git a/tests/glslparsertest/shaders/dvec2.frag b/tests/glslparsertest/shaders/dvec2.frag index 35bc24772..3567a64e1 100644 --- a/tests/glslparsertest/shaders/dvec2.frag +++ b/tests/glslparsertest/shaders/dvec2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
dvec2 d; // dvec2 is not a valid datatype, reserved for future use
diff --git a/tests/glslparsertest/shaders/dvec3.frag b/tests/glslparsertest/shaders/dvec3.frag index fc173cd62..16bbb3d20 100644 --- a/tests/glslparsertest/shaders/dvec3.frag +++ b/tests/glslparsertest/shaders/dvec3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
dvec3 d; // dvec3 is not a valid datatype, reserved for future use
diff --git a/tests/glslparsertest/shaders/dvec4.frag b/tests/glslparsertest/shaders/dvec4.frag index 6b2d257b3..04e3ea4c4 100644 --- a/tests/glslparsertest/shaders/dvec4.frag +++ b/tests/glslparsertest/shaders/dvec4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
dvec4 d; // dvec4 is not a valid datatype, reserved for future use
diff --git a/tests/glslparsertest/shaders/extension2.V110.frag b/tests/glslparsertest/shaders/extension2.V110.frag index ece8f3c60..7c68fd6ad 100644 --- a/tests/glslparsertest/shaders/extension2.V110.frag +++ b/tests/glslparsertest/shaders/extension2.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension all : require // cannot use require or enable with all #extension all : enable // cannot use require or enable with all diff --git a/tests/glslparsertest/shaders/extension3.V110.frag b/tests/glslparsertest/shaders/extension3.V110.frag index e501ff26a..30d309be3 100644 --- a/tests/glslparsertest/shaders/extension3.V110.frag +++ b/tests/glslparsertest/shaders/extension3.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension foo : require // error extension not supported
void main()
diff --git a/tests/glslparsertest/shaders/extension5.V110.frag b/tests/glslparsertest/shaders/extension5.V110.frag index 990e0d9f3..d8115c9b8 100644 --- a/tests/glslparsertest/shaders/extension5.V110.frag +++ b/tests/glslparsertest/shaders/extension5.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension all : ddisablee // error, behavior is not supported void main() diff --git a/tests/glslparsertest/shaders/extension6.V110.frag b/tests/glslparsertest/shaders/extension6.V110.frag index 52c2358ea..145ce74bb 100644 --- a/tests/glslparsertest/shaders/extension6.V110.frag +++ b/tests/glslparsertest/shaders/extension6.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension // error name and behavior not specified void main() diff --git a/tests/glslparsertest/shaders/extension7.V110.frag b/tests/glslparsertest/shaders/extension7.V110.frag index 2add2f284..c09434401 100644 --- a/tests/glslparsertest/shaders/extension7.V110.frag +++ b/tests/glslparsertest/shaders/extension7.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension foo // ":" missing after extension name
void main()
diff --git a/tests/glslparsertest/shaders/extension8.V110.frag b/tests/glslparsertest/shaders/extension8.V110.frag index 67b7f6d73..614fceda2 100644 --- a/tests/glslparsertest/shaders/extension8.V110.frag +++ b/tests/glslparsertest/shaders/extension8.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension foo : // behavior not specified
void main()
diff --git a/tests/glslparsertest/shaders/extension9.V110.frag b/tests/glslparsertest/shaders/extension9.V110.frag index 71e750787..ad4c50ecf 100644 --- a/tests/glslparsertest/shaders/extension9.V110.frag +++ b/tests/glslparsertest/shaders/extension9.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #extension foo behavior // ":" missing after extension name
void main()
diff --git a/tests/glslparsertest/shaders/float2.frag b/tests/glslparsertest/shaders/float2.frag index b34dcf3f0..3a49ccc87 100644 --- a/tests/glslparsertest/shaders/float2.frag +++ b/tests/glslparsertest/shaders/float2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float2 f; // float2 is not a valid datatype
diff --git a/tests/glslparsertest/shaders/float3.frag b/tests/glslparsertest/shaders/float3.frag index 73db2356b..7b568bdc2 100644 --- a/tests/glslparsertest/shaders/float3.frag +++ b/tests/glslparsertest/shaders/float3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float3 f; // float3 is not a valid datatype
diff --git a/tests/glslparsertest/shaders/float4.frag b/tests/glslparsertest/shaders/float4.frag index 650df25a6..fd6e040d7 100644 --- a/tests/glslparsertest/shaders/float4.frag +++ b/tests/glslparsertest/shaders/float4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float4 f; // float4 is not a valid datatype
diff --git a/tests/glslparsertest/shaders/fragmentOnly.vert b/tests/glslparsertest/shaders/fragmentOnly.vert index 6436bff05..2248a5afc 100644 --- a/tests/glslparsertest/shaders/fragmentOnly.vert +++ b/tests/glslparsertest/shaders/fragmentOnly.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_FragDepth = 1.0; // can be used in fragment shader only
diff --git a/tests/glslparsertest/shaders/fragmentOnly1.vert b/tests/glslparsertest/shaders/fragmentOnly1.vert index 305916c3e..b91b7cc4e 100644 --- a/tests/glslparsertest/shaders/fragmentOnly1.vert +++ b/tests/glslparsertest/shaders/fragmentOnly1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_FrontFacing = true; // can be used in fragment shader only
diff --git a/tests/glslparsertest/shaders/fragmentOnly2.vert b/tests/glslparsertest/shaders/fragmentOnly2.vert index 5ea2dfb5f..fcbd1be7b 100644 --- a/tests/glslparsertest/shaders/fragmentOnly2.vert +++ b/tests/glslparsertest/shaders/fragmentOnly2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_FragCoord = vec4(1.0); // can be used in fragment shader only
diff --git a/tests/glslparsertest/shaders/fragmentOnly3.vert b/tests/glslparsertest/shaders/fragmentOnly3.vert index f98b303a6..3cbb27f11 100644 --- a/tests/glslparsertest/shaders/fragmentOnly3.vert +++ b/tests/glslparsertest/shaders/fragmentOnly3.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_FragColor = vec4(1.0); // can be used in fragment shader only
diff --git a/tests/glslparsertest/shaders/fragmentOnly4.vert b/tests/glslparsertest/shaders/fragmentOnly4.vert index 6639fd334..e847dd2b2 100644 --- a/tests/glslparsertest/shaders/fragmentOnly4.vert +++ b/tests/glslparsertest/shaders/fragmentOnly4.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
discard; // can be used in fragment shader only
diff --git a/tests/glslparsertest/shaders/function1.frag b/tests/glslparsertest/shaders/function1.frag index 14c124ed9..8795b0900 100644 --- a/tests/glslparsertest/shaders/function1.frag +++ b/tests/glslparsertest/shaders/function1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(int i)
{
return i; // void function cannot return a value
diff --git a/tests/glslparsertest/shaders/function10.frag b/tests/glslparsertest/shaders/function10.frag index 0cf63fcef..5c42253bf 100644 --- a/tests/glslparsertest/shaders/function10.frag +++ b/tests/glslparsertest/shaders/function10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(in int i);
void main()
diff --git a/tests/glslparsertest/shaders/function2.V110.frag b/tests/glslparsertest/shaders/function2.V110.frag index 13cf1ae0b..217184fc5 100644 --- a/tests/glslparsertest/shaders/function2.V110.frag +++ b/tests/glslparsertest/shaders/function2.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(int i[]) // size of array must be specified
{
}
diff --git a/tests/glslparsertest/shaders/function3.frag b/tests/glslparsertest/shaders/function3.frag index 12fc0cd62..4fb7853fe 100644 --- a/tests/glslparsertest/shaders/function3.frag +++ b/tests/glslparsertest/shaders/function3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(const int i)
{
i = 3; // const value cant be modified
diff --git a/tests/glslparsertest/shaders/function4.frag b/tests/glslparsertest/shaders/function4.frag index e32235940..ac4246de2 100644 --- a/tests/glslparsertest/shaders/function4.frag +++ b/tests/glslparsertest/shaders/function4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform int uniformInt;
void function(out int i)
diff --git a/tests/glslparsertest/shaders/function5.frag b/tests/glslparsertest/shaders/function5.frag index a8562dd69..f7ada16d2 100644 --- a/tests/glslparsertest/shaders/function5.frag +++ b/tests/glslparsertest/shaders/function5.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + int function(out int i)
{ // function should return a value
}
diff --git a/tests/glslparsertest/shaders/function6.frag b/tests/glslparsertest/shaders/function6.frag index 8c1f03785..735cc5398 100644 --- a/tests/glslparsertest/shaders/function6.frag +++ b/tests/glslparsertest/shaders/function6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(const out int i)
{ // out parameters cannot be const
i = 3;
diff --git a/tests/glslparsertest/shaders/function7.frag b/tests/glslparsertest/shaders/function7.frag index e99e6906a..3993e66fe 100644 --- a/tests/glslparsertest/shaders/function7.frag +++ b/tests/glslparsertest/shaders/function7.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(uniform int i)
{ // uniform qualifier cannot be used with function parameters
}
diff --git a/tests/glslparsertest/shaders/function8.frag b/tests/glslparsertest/shaders/function8.frag index 18347667c..d88948003 100644 --- a/tests/glslparsertest/shaders/function8.frag +++ b/tests/glslparsertest/shaders/function8.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(const inout int i)
{ // inout parameters cannot be const
i = 3;
diff --git a/tests/glslparsertest/shaders/function9.frag b/tests/glslparsertest/shaders/function9.frag index 87224c9e4..d192cf6c5 100644 --- a/tests/glslparsertest/shaders/function9.frag +++ b/tests/glslparsertest/shaders/function9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void function(const in int i);
void main()
diff --git a/tests/glslparsertest/shaders/hvec2.frag b/tests/glslparsertest/shaders/hvec2.frag index e6bf9b82b..79c5ba799 100644 --- a/tests/glslparsertest/shaders/hvec2.frag +++ b/tests/glslparsertest/shaders/hvec2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
hvec2 f; // hvec2 is not a valid datatype, reserved for future use
diff --git a/tests/glslparsertest/shaders/hvec3.frag b/tests/glslparsertest/shaders/hvec3.frag index 09919f310..eac2d606f 100644 --- a/tests/glslparsertest/shaders/hvec3.frag +++ b/tests/glslparsertest/shaders/hvec3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
hvec3 f; // hvec3 is not a valid datatype, reserved for future use
diff --git a/tests/glslparsertest/shaders/hvec4.frag b/tests/glslparsertest/shaders/hvec4.frag index 12c4d34e6..a202b538c 100644 --- a/tests/glslparsertest/shaders/hvec4.frag +++ b/tests/glslparsertest/shaders/hvec4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
hvec4 f; // hvec4 is not a valid datatype, reserved for future use
diff --git a/tests/glslparsertest/shaders/identifier1.frag b/tests/glslparsertest/shaders/identifier1.frag index eb66fd4c4..5d42ed188 100644 --- a/tests/glslparsertest/shaders/identifier1.frag +++ b/tests/glslparsertest/shaders/identifier1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int 1i; // incorrect identifier name
diff --git a/tests/glslparsertest/shaders/identifier2.frag b/tests/glslparsertest/shaders/identifier2.frag index 0c6b0ee90..6e944e99a 100644 --- a/tests/glslparsertest/shaders/identifier2.frag +++ b/tests/glslparsertest/shaders/identifier2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int gl_int; // identifier name cannot begin with "gl_"
diff --git a/tests/glslparsertest/shaders/identifier3.frag b/tests/glslparsertest/shaders/identifier3.frag index f7c4e04a6..3831d8567 100644 --- a/tests/glslparsertest/shaders/identifier3.frag +++ b/tests/glslparsertest/shaders/identifier3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i;
diff --git a/tests/glslparsertest/shaders/if1.frag b/tests/glslparsertest/shaders/if1.frag index b31204d39..e7de64f4b 100644 --- a/tests/glslparsertest/shaders/if1.frag +++ b/tests/glslparsertest/shaders/if1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i;
diff --git a/tests/glslparsertest/shaders/if2.frag b/tests/glslparsertest/shaders/if2.frag index bf3c1fc66..cc34b716b 100644 --- a/tests/glslparsertest/shaders/if2.frag +++ b/tests/glslparsertest/shaders/if2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v;
diff --git a/tests/glslparsertest/shaders/increment1.frag b/tests/glslparsertest/shaders/increment1.frag index 949f8e7e8..ea793da03 100644 --- a/tests/glslparsertest/shaders/increment1.frag +++ b/tests/glslparsertest/shaders/increment1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
int i;
} s1;
diff --git a/tests/glslparsertest/shaders/increment2.frag b/tests/glslparsertest/shaders/increment2.frag index 1484b6dcb..d5b9b62e1 100644 --- a/tests/glslparsertest/shaders/increment2.frag +++ b/tests/glslparsertest/shaders/increment2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i;
diff --git a/tests/glslparsertest/shaders/increment3.frag b/tests/glslparsertest/shaders/increment3.frag index 9be606cba..7a7a48b1a 100644 --- a/tests/glslparsertest/shaders/increment3.frag +++ b/tests/glslparsertest/shaders/increment3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform sampler1D sampler1d;
void main()
diff --git a/tests/glslparsertest/shaders/increment4.frag b/tests/glslparsertest/shaders/increment4.frag index 2f2bccc7f..0d0cf63d6 100644 --- a/tests/glslparsertest/shaders/increment4.frag +++ b/tests/glslparsertest/shaders/increment4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i;
diff --git a/tests/glslparsertest/shaders/increment6.frag b/tests/glslparsertest/shaders/increment6.frag index 1aa47b6d6..1787290a3 100644 --- a/tests/glslparsertest/shaders/increment6.frag +++ b/tests/glslparsertest/shaders/increment6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i;
diff --git a/tests/glslparsertest/shaders/main1.vert b/tests/glslparsertest/shaders/main1.vert index 0c8d098c8..6559dfbd0 100644 --- a/tests/glslparsertest/shaders/main1.vert +++ b/tests/glslparsertest/shaders/main1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + main() // return type of main should be void
{
}
diff --git a/tests/glslparsertest/shaders/main2.vert b/tests/glslparsertest/shaders/main2.vert index c93ce49a2..f2361449d 100644 --- a/tests/glslparsertest/shaders/main2.vert +++ b/tests/glslparsertest/shaders/main2.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main(int i) // main function cannot take any parameters
{
gl_Position = vec4(1);
diff --git a/tests/glslparsertest/shaders/main3.vert b/tests/glslparsertest/shaders/main3.vert index 800bb1cd7..c2fdbe12a 100644 --- a/tests/glslparsertest/shaders/main3.vert +++ b/tests/glslparsertest/shaders/main3.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + int main() // return type of main should be void
{
return 1;
diff --git a/tests/glslparsertest/shaders/matrix.V110.frag b/tests/glslparsertest/shaders/matrix.V110.frag index 48d735ec1..f23ee8ff4 100644 --- a/tests/glslparsertest/shaders/matrix.V110.frag +++ b/tests/glslparsertest/shaders/matrix.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
mat4 m;
diff --git a/tests/glslparsertest/shaders/normal.vert b/tests/glslparsertest/shaders/normal.vert index abd7ca7e1..f3727cd26 100644 --- a/tests/glslparsertest/shaders/normal.vert +++ b/tests/glslparsertest/shaders/normal.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_Normal = vec3(1.0,2.0,3.0); // cannot be modified an attribute
diff --git a/tests/glslparsertest/shaders/parser1.vert b/tests/glslparsertest/shaders/parser1.vert index 7c120dffd..aca3e6cf4 100644 --- a/tests/glslparsertest/shaders/parser1.vert +++ b/tests/glslparsertest/shaders/parser1.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int a // semicolon missing at the end of the statement
diff --git a/tests/glslparsertest/shaders/parser10.frag b/tests/glslparsertest/shaders/parser10.frag index 7f48c0110..c4e7f7172 100644 --- a/tests/glslparsertest/shaders/parser10.frag +++ b/tests/glslparsertest/shaders/parser10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
5 += 5; // l-value missing
diff --git a/tests/glslparsertest/shaders/parser3.frag b/tests/glslparsertest/shaders/parser3.frag index 6ca5a3f74..21d77f3ee 100644 --- a/tests/glslparsertest/shaders/parser3.frag +++ b/tests/glslparsertest/shaders/parser3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f[3];
diff --git a/tests/glslparsertest/shaders/parser4.frag b/tests/glslparsertest/shaders/parser4.frag index 32048f0bb..d068c66b5 100644 --- a/tests/glslparsertest/shaders/parser4.frag +++ b/tests/glslparsertest/shaders/parser4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
const int i = 5;
diff --git a/tests/glslparsertest/shaders/parser5.frag b/tests/glslparsertest/shaders/parser5.frag index b9a65d90f..74f04ed61 100644 --- a/tests/glslparsertest/shaders/parser5.frag +++ b/tests/glslparsertest/shaders/parser5.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v;
diff --git a/tests/glslparsertest/shaders/parser6.frag b/tests/glslparsertest/shaders/parser6.frag index 2414889ca..c61bb529a 100644 --- a/tests/glslparsertest/shaders/parser6.frag +++ b/tests/glslparsertest/shaders/parser6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f1,f2,f3;
diff --git a/tests/glslparsertest/shaders/parser7.frag b/tests/glslparsertest/shaders/parser7.frag index 55c6d0fe3..affa69bd0 100644 --- a/tests/glslparsertest/shaders/parser7.frag +++ b/tests/glslparsertest/shaders/parser7.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
mat2 m1,m2;
diff --git a/tests/glslparsertest/shaders/parser8.frag b/tests/glslparsertest/shaders/parser8.frag index eb6e04063..0f5905095 100644 --- a/tests/glslparsertest/shaders/parser8.frag +++ b/tests/glslparsertest/shaders/parser8.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v2;
diff --git a/tests/glslparsertest/shaders/parser9.frag b/tests/glslparsertest/shaders/parser9.frag index ec6c873fe..5749e679b 100644 --- a/tests/glslparsertest/shaders/parser9.frag +++ b/tests/glslparsertest/shaders/parser9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f1,f2;
diff --git a/tests/glslparsertest/shaders/preprocess0.frag b/tests/glslparsertest/shaders/preprocess0.frag index 9c76031f3..b96d8216a 100644 --- a/tests/glslparsertest/shaders/preprocess0.frag +++ b/tests/glslparsertest/shaders/preprocess0.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + //test for else elif mismatch
#define test(x,y) (x+y)
diff --git a/tests/glslparsertest/shaders/preprocess1.frag b/tests/glslparsertest/shaders/preprocess1.frag index 8417efeec..6b56ec4bd 100644 --- a/tests/glslparsertest/shaders/preprocess1.frag +++ b/tests/glslparsertest/shaders/preprocess1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // tests for macro redifinition (t2) and the #if and #else nestings.
// takes care of elif also.
diff --git a/tests/glslparsertest/shaders/preprocess10.frag b/tests/glslparsertest/shaders/preprocess10.frag index f32fda750..d07794bea 100644 --- a/tests/glslparsertest/shaders/preprocess10.frag +++ b/tests/glslparsertest/shaders/preprocess10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* The program should terminate with an error message and not get into an infinite loop */ #ifdef name diff --git a/tests/glslparsertest/shaders/preprocess2.frag b/tests/glslparsertest/shaders/preprocess2.frag index 09d117557..67f7c39ce 100644 --- a/tests/glslparsertest/shaders/preprocess2.frag +++ b/tests/glslparsertest/shaders/preprocess2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // #line directive-- test cases.
// chks for Invalid directives, all possible #line errors
// Also checks the correct verions of #line dorective.
diff --git a/tests/glslparsertest/shaders/preprocess3.frag b/tests/glslparsertest/shaders/preprocess3.frag index ed5272462..27aba749f 100644 --- a/tests/glslparsertest/shaders/preprocess3.frag +++ b/tests/glslparsertest/shaders/preprocess3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // simple macro expansions.
// Tests for Too few macro arguments, too many macro arguments.
// Macros with no arguments.
diff --git a/tests/glslparsertest/shaders/preprocess4.frag b/tests/glslparsertest/shaders/preprocess4.frag index c19fc91da..2adc73ba4 100644 --- a/tests/glslparsertest/shaders/preprocess4.frag +++ b/tests/glslparsertest/shaders/preprocess4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // #error and #pragma directives -- test cases.
// tests for errors in #pragma directive.
diff --git a/tests/glslparsertest/shaders/preprocess6.frag b/tests/glslparsertest/shaders/preprocess6.frag index 05a6e5932..15e8df64d 100644 --- a/tests/glslparsertest/shaders/preprocess6.frag +++ b/tests/glslparsertest/shaders/preprocess6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // operator precedence and some macro expansions.
#define test (1+2)
diff --git a/tests/glslparsertest/shaders/preprocess7.frag b/tests/glslparsertest/shaders/preprocess7.frag index 52ceaa723..772483bde 100644 --- a/tests/glslparsertest/shaders/preprocess7.frag +++ b/tests/glslparsertest/shaders/preprocess7.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + // testing for char constants in #if and #elif
// Also checking whether reserved words can be redefined.
diff --git a/tests/glslparsertest/shaders/scoping1.frag b/tests/glslparsertest/shaders/scoping1.frag index 8e6880c4d..71b2d4dcc 100644 --- a/tests/glslparsertest/shaders/scoping1.frag +++ b/tests/glslparsertest/shaders/scoping1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
bool b;
diff --git a/tests/glslparsertest/shaders/scoping2.frag b/tests/glslparsertest/shaders/scoping2.frag index 7a577e45b..457ad6649 100644 --- a/tests/glslparsertest/shaders/scoping2.frag +++ b/tests/glslparsertest/shaders/scoping2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
{
diff --git a/tests/glslparsertest/shaders/struct1.frag b/tests/glslparsertest/shaders/struct1.frag index 557da0466..3fd65daa5 100644 --- a/tests/glslparsertest/shaders/struct1.frag +++ b/tests/glslparsertest/shaders/struct1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
int i;
} uniform uniformStruct; // uniform keyword should be used before the keyword struct
diff --git a/tests/glslparsertest/shaders/struct10.frag b/tests/glslparsertest/shaders/struct10.frag index 00acb9aa3..3fe1022d9 100644 --- a/tests/glslparsertest/shaders/struct10.frag +++ b/tests/glslparsertest/shaders/struct10.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
int i;
} s1[2];
diff --git a/tests/glslparsertest/shaders/struct11.frag b/tests/glslparsertest/shaders/struct11.frag index 5f0ad0694..4f23e51d0 100644 --- a/tests/glslparsertest/shaders/struct11.frag +++ b/tests/glslparsertest/shaders/struct11.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
int i;
} s1;
diff --git a/tests/glslparsertest/shaders/struct2.frag b/tests/glslparsertest/shaders/struct2.frag index bd27fa4ea..e9804e4b5 100644 --- a/tests/glslparsertest/shaders/struct2.frag +++ b/tests/glslparsertest/shaders/struct2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
int i = 1.0; // struct members cannot be initialized at the time of structure declaration
} s1;
diff --git a/tests/glslparsertest/shaders/struct3.frag b/tests/glslparsertest/shaders/struct3.frag index 84a353e63..58e3681c0 100644 --- a/tests/glslparsertest/shaders/struct3.frag +++ b/tests/glslparsertest/shaders/struct3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
uniform int i; // structure members cannot be declared with const qualifier
} s1;
diff --git a/tests/glslparsertest/shaders/struct4.frag b/tests/glslparsertest/shaders/struct4.frag index ea83c959d..b82995258 100644 --- a/tests/glslparsertest/shaders/struct4.frag +++ b/tests/glslparsertest/shaders/struct4.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
const int i = 1; // structure members cannot be declared with const qualifier
} s1;
diff --git a/tests/glslparsertest/shaders/struct5.frag b/tests/glslparsertest/shaders/struct5.frag index 27c27e5ce..8614fc5cb 100644 --- a/tests/glslparsertest/shaders/struct5.frag +++ b/tests/glslparsertest/shaders/struct5.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + uniform struct s {
int i;
} s1;
diff --git a/tests/glslparsertest/shaders/struct6.frag b/tests/glslparsertest/shaders/struct6.frag index 0965d6c0d..e7d1451d7 100644 --- a/tests/glslparsertest/shaders/struct6.frag +++ b/tests/glslparsertest/shaders/struct6.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + varying struct s {
int i;
} s1; // structures cannot be declared with varying qualifier
diff --git a/tests/glslparsertest/shaders/struct7.frag b/tests/glslparsertest/shaders/struct7.frag index 1f05a5a20..bc820b1aa 100644 --- a/tests/glslparsertest/shaders/struct7.frag +++ b/tests/glslparsertest/shaders/struct7.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
struct s {
diff --git a/tests/glslparsertest/shaders/struct8.frag b/tests/glslparsertest/shaders/struct8.frag index 8e9766e75..5693f7a1f 100644 --- a/tests/glslparsertest/shaders/struct8.frag +++ b/tests/glslparsertest/shaders/struct8.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + struct s {
int i;
} s1;
diff --git a/tests/glslparsertest/shaders/struct9.frag b/tests/glslparsertest/shaders/struct9.frag index 25e423ccd..50dda46ec 100644 --- a/tests/glslparsertest/shaders/struct9.frag +++ b/tests/glslparsertest/shaders/struct9.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + const struct s {
int i;
} s1 = s(1);
diff --git a/tests/glslparsertest/shaders/swizzle1.frag b/tests/glslparsertest/shaders/swizzle1.frag index ede009856..0a39c9790 100644 --- a/tests/glslparsertest/shaders/swizzle1.frag +++ b/tests/glslparsertest/shaders/swizzle1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v;
diff --git a/tests/glslparsertest/shaders/swizzle2.frag b/tests/glslparsertest/shaders/swizzle2.frag index 20b76bd20..486fa3a68 100644 --- a/tests/glslparsertest/shaders/swizzle2.frag +++ b/tests/glslparsertest/shaders/swizzle2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v;
diff --git a/tests/glslparsertest/shaders/swizzle3.frag b/tests/glslparsertest/shaders/swizzle3.frag index 70338d7c7..121e3f2c0 100644 --- a/tests/glslparsertest/shaders/swizzle3.frag +++ b/tests/glslparsertest/shaders/swizzle3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec2 v;
diff --git a/tests/glslparsertest/shaders/typecast.frag b/tests/glslparsertest/shaders/typecast.frag index da5d04c68..6bec977ee 100644 --- a/tests/glslparsertest/shaders/typecast.frag +++ b/tests/glslparsertest/shaders/typecast.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
vec4 v;
diff --git a/tests/glslparsertest/shaders/uniform.frag b/tests/glslparsertest/shaders/uniform.frag index 24f9f9c65..588738eb9 100644 --- a/tests/glslparsertest/shaders/uniform.frag +++ b/tests/glslparsertest/shaders/uniform.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
uniform float foo; // uniforms can only be declared at a global scope
diff --git a/tests/glslparsertest/shaders/uniform1.frag b/tests/glslparsertest/shaders/uniform1.frag index a142e4612..93a17759d 100644 --- a/tests/glslparsertest/shaders/uniform1.frag +++ b/tests/glslparsertest/shaders/uniform1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_Fog.density = 1.0; // cannot modify a uniform
diff --git a/tests/glslparsertest/shaders/varying.frag b/tests/glslparsertest/shaders/varying.frag index e67aa2f9b..57a97bed4 100644 --- a/tests/glslparsertest/shaders/varying.frag +++ b/tests/glslparsertest/shaders/varying.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
varying float foo; // varyings can only be declared at a global scope
diff --git a/tests/glslparsertest/shaders/varying1.frag b/tests/glslparsertest/shaders/varying1.frag index 983a9db72..bbbbab5c1 100644 --- a/tests/glslparsertest/shaders/varying1.frag +++ b/tests/glslparsertest/shaders/varying1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + varying float foo;
void main()
diff --git a/tests/glslparsertest/shaders/varying2.frag b/tests/glslparsertest/shaders/varying2.frag index bdd199721..35cc74779 100644 --- a/tests/glslparsertest/shaders/varying2.frag +++ b/tests/glslparsertest/shaders/varying2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + varying int foo; // varyings cannot be int or bool
void main()
diff --git a/tests/glslparsertest/shaders/varying3.frag b/tests/glslparsertest/shaders/varying3.frag index 634b3ada7..0523c0a4f 100644 --- a/tests/glslparsertest/shaders/varying3.frag +++ b/tests/glslparsertest/shaders/varying3.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + varying vec4 v = gl_TexCoord[0]; // varyings cannot be initialized
void main()
diff --git a/tests/glslparsertest/shaders/vector.frag b/tests/glslparsertest/shaders/vector.frag index d1cd6cf55..8ad8f4c26 100644 --- a/tests/glslparsertest/shaders/vector.frag +++ b/tests/glslparsertest/shaders/vector.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
ivec4 v4;
diff --git a/tests/glslparsertest/shaders/version2.V110.frag b/tests/glslparsertest/shaders/version2.V110.frag index 2d8572c49..6c1ba8b03 100644 --- a/tests/glslparsertest/shaders/version2.V110.frag +++ b/tests/glslparsertest/shaders/version2.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + #pragma debug(on) #version 110 // error #version should be the first statement in the program diff --git a/tests/glslparsertest/shaders/version3.V110.frag b/tests/glslparsertest/shaders/version3.V110.frag index 8ec37b7e9..8d2be0b3d 100644 --- a/tests/glslparsertest/shaders/version3.V110.frag +++ b/tests/glslparsertest/shaders/version3.V110.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + /* This is a comment*/ int i; // This is a global decl #version 110 // error #version should be the first statement in the program diff --git a/tests/glslparsertest/shaders/vertex.vert b/tests/glslparsertest/shaders/vertex.vert index 306125e4b..be4897fd9 100644 --- a/tests/glslparsertest/shaders/vertex.vert +++ b/tests/glslparsertest/shaders/vertex.vert @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_Vertex = vec4(1.0,2.0,3.0, 4.0); // cannot modify an attribute
diff --git a/tests/glslparsertest/shaders/vertexOnly.frag b/tests/glslparsertest/shaders/vertexOnly.frag index 7d13d3083..f10aecca0 100644 --- a/tests/glslparsertest/shaders/vertexOnly.frag +++ b/tests/glslparsertest/shaders/vertexOnly.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_PointSize = 4.0; // can be used in vertex shader only
diff --git a/tests/glslparsertest/shaders/vertexOnly1.frag b/tests/glslparsertest/shaders/vertexOnly1.frag index 34c0320b4..38199726f 100644 --- a/tests/glslparsertest/shaders/vertexOnly1.frag +++ b/tests/glslparsertest/shaders/vertexOnly1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_ClipVertex = vec4(1); // can be used in vertex shader only
diff --git a/tests/glslparsertest/shaders/vertexOnly2.frag b/tests/glslparsertest/shaders/vertexOnly2.frag index 10684f7c6..200c720ef 100644 --- a/tests/glslparsertest/shaders/vertexOnly2.frag +++ b/tests/glslparsertest/shaders/vertexOnly2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
gl_Position = vec4(4.0); // can be used in vertex shader only
diff --git a/tests/glslparsertest/shaders/while.frag b/tests/glslparsertest/shaders/while.frag index 806971cf5..92e6c572f 100644 --- a/tests/glslparsertest/shaders/while.frag +++ b/tests/glslparsertest/shaders/while.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
float f;
diff --git a/tests/glslparsertest/shaders/while1.frag b/tests/glslparsertest/shaders/while1.frag index f0360a554..73eed2b6d 100644 --- a/tests/glslparsertest/shaders/while1.frag +++ b/tests/glslparsertest/shaders/while1.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
int i;
diff --git a/tests/glslparsertest/shaders/while2.frag b/tests/glslparsertest/shaders/while2.frag index 4fdb7ff16..9498b4504 100644 --- a/tests/glslparsertest/shaders/while2.frag +++ b/tests/glslparsertest/shaders/while2.frag @@ -1,3 +1,12 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// +// # NOTE: Config section was auto-generated from file +// # NOTE: 'glslparser.tests' at git revision +// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0 +// [end config] + void main()
{
while(float f = 5.0) { // cannot declare variables in condition
|