[Piglit] [PATCH 01/13] glsl-1.10: Add tests for empty block and statements.
Matt Turner
mattst88 at gmail.com
Sat Jul 5 23:03:13 PDT 2014
---
tests/spec/glsl-1.10/compiler/statements/empty-block.vert | 9 +++++++++
tests/spec/glsl-1.10/compiler/statements/empty-statement.vert | 9 +++++++++
2 files changed, 18 insertions(+)
create mode 100644 tests/spec/glsl-1.10/compiler/statements/empty-block.vert
create mode 100644 tests/spec/glsl-1.10/compiler/statements/empty-statement.vert
diff --git a/tests/spec/glsl-1.10/compiler/statements/empty-block.vert b/tests/spec/glsl-1.10/compiler/statements/empty-block.vert
new file mode 100644
index 0000000..b06a73a
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/statements/empty-block.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ {}
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/spec/glsl-1.10/compiler/statements/empty-statement.vert b/tests/spec/glsl-1.10/compiler/statements/empty-statement.vert
new file mode 100644
index 0000000..f87db19
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/statements/empty-statement.vert
@@ -0,0 +1,9 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+void main() {
+ ;
+ gl_Position = vec4(1.0);
+}
--
1.8.3.2
More information about the Piglit
mailing list