]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/disallowed_types.glsl
Disallow certain types from appearing on variables
[libs/gl.git] / tests / glsl / disallowed_types.glsl
diff --git a/tests/glsl/disallowed_types.glsl b/tests/glsl/disallowed_types.glsl
new file mode 100644 (file)
index 0000000..6835dbb
--- /dev/null
@@ -0,0 +1,14 @@
+uniform bool u_bool;
+
+#pragma MSP stage(vertex)
+void void_var;
+layout(location=0) in vec4 position;
+void main()
+{
+       gl_Position = position;
+}
+
+/* Expected error:
+<test>:1: Type 'bool' not allowed on interface variable
+<test>:4: Type 'void' not allowed on variable
+*/