The GLSL 1.10 tests currently fail (we accept floating-point suffixes
regardless of language version).
---
.../glsl-1.10/compiler/literals/invalid-float-suffix-F.vert | 10 ++++++++++
.../glsl-1.10/compiler/literals/invalid-float-suffix-f.vert | 10 ++++++++++
.../spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert | 9 +++++++++
.../spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert | 9 +++++++++
4 files changed, 38 insertions(+)
create mode 100644
tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
create mode 100644
tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
create mode 100644
tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
create mode 100644
tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
diff --git a/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
new file mode 100644
index 0000000..2022cdb
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ // Float-suffixes are not in GLSL 1.10
+ float f = 1.0F;
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
new file mode 100644
index 0000000..8c149a0
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ // Float-suffixes are not in GLSL 1.10
+ float f = 1.0f;
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
new file mode 100644
index 0000000..2933ffa
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ float f = 1.0F;
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
new file mode 100644
index 0000000..dad6d28
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ float f = 1.0f;
+ gl_Position = vec4(1.0);
+}
--
1.8.3.2
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit