diff options
author | Matt Turner <mattst88@gmail.com> | 2013-06-29 15:03:43 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-07-08 11:23:46 -0700 |
commit | 40a5d6cb5f3e4150aa35dcedd01dbab9521635db (patch) | |
tree | 7a1c3abcfe1fcdb1d31fde69b3350fb295d3dc6e /tests/spec | |
parent | 7ac677a2df6bae3f19dcee447ca6b3253a9cadcc (diff) |
arb_shading_language_420pack: Test wrong type in matrix initializer
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'tests/spec')
-rw-r--r-- | tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-matrix-wrong-type.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-matrix-wrong-type.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-matrix-wrong-type.frag new file mode 100644 index 000000000..b5f1c79a6 --- /dev/null +++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-matrix-wrong-type.frag @@ -0,0 +1,15 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.30 + * require_extensions: GL_ARB_shading_language_420pack + * [end config] + */ + +#version 130 +#extension GL_ARB_shading_language_420pack: enable + +void main() { + // Illegal since column type of c is a vec3, but vec4 given as initializer + mat3x3 c = { vec3(0.0), vec3(1.0), vec4(1.0) }; + gl_FragColor = vec4(1.0); +} |