[Piglit] [PATCH 03/11] arb_shader_subroutine: Add test for 'subroutine' being a keyword

Chris Forbes chrisf at ijw.co.nz
Sun Aug 10 04:06:54 PDT 2014


Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 tests/spec/arb_shader_subroutine/compiler/keyword.vert | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 tests/spec/arb_shader_subroutine/compiler/keyword.vert

diff --git a/tests/spec/arb_shader_subroutine/compiler/keyword.vert b/tests/spec/arb_shader_subroutine/compiler/keyword.vert
new file mode 100644
index 0000000..719cb83
--- /dev/null
+++ b/tests/spec/arb_shader_subroutine/compiler/keyword.vert
@@ -0,0 +1,13 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_shader_subroutine
+// [end config]
+
+#version 150
+#extension GL_ARB_shader_subroutine: require
+
+/* `subroutine` is a reserved keyword; it cannot be used
+ * as an identifier.
+ */
+int subroutine;
-- 
2.0.4



More information about the Piglit mailing list