[Piglit] [PATCH 05/11] arb_shader_subroutine: Test that subroutine is not allowed on prototypes

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


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

diff --git a/tests/spec/arb_shader_subroutine/compiler/subroutine-def-no-prototype.vert b/tests/spec/arb_shader_subroutine/compiler/subroutine-def-no-prototype.vert
new file mode 100644
index 0000000..6932595
--- /dev/null
+++ b/tests/spec/arb_shader_subroutine/compiler/subroutine-def-no-prototype.vert
@@ -0,0 +1,15 @@
+// [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 void func_type();
+
+/* A function prototype with a subroutine type attached:
+ * not allowed.
+ */
+subroutine (func_type) void f();
-- 
2.0.4



More information about the Piglit mailing list