X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=tests%2Fglsl%2Fdisallowed_types.glsl;fp=tests%2Fglsl%2Fdisallowed_types.glsl;h=6835dbb6b4ab7b7a31602eedeabcb0f755618efe;hb=7156c64692b7919b487d7fe2d7aa75430a2e53bb;hp=0000000000000000000000000000000000000000;hpb=305b62cf4f7e2a4ca3cc56109003aed6bde61c25;p=libs%2Fgl.git diff --git a/tests/glsl/disallowed_types.glsl b/tests/glsl/disallowed_types.glsl new file mode 100644 index 00000000..6835dbb6 --- /dev/null +++ b/tests/glsl/disallowed_types.glsl @@ -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: +:1: Type 'bool' not allowed on interface variable +:4: Type 'void' not allowed on variable +*/