diff options
author | Matt Turner <mattst88@gmail.com> | 2013-06-29 14:58:39 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-07-08 11:23:44 -0700 |
commit | 172ae2c71b6c8d0a3241c246f41b23c5856ba80f (patch) | |
tree | f50597e7a5e8db11ce13cf2841c8ca89a356ef35 /tests/spec/arb_shading_language_420pack | |
parent | e29fbf6bac620ec17e5baec8db41702e5185d9a8 (diff) |
arb_shading_language_420pack: Test too many elements in array initializer
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'tests/spec/arb_shading_language_420pack')
-rw-r--r-- | tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-array-too-many-elements.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-array-too-many-elements.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-array-too-many-elements.frag new file mode 100644 index 000000000..9854a1044 --- /dev/null +++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-array-too-many-elements.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 a has only 2 elements, but 3 elements given as initializer + float a[2] = { 3.4, 4.2, 5.0 }; + gl_FragColor = vec4(1.0); +} |