diff options
author | Matt Turner <mattst88@gmail.com> | 2013-07-17 11:13:38 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-07-19 13:08:48 -0700 |
commit | f4c375a4685fa0c41e4f0b8d3fa48f8e5faaa38f (patch) | |
tree | 1f485ee41bf76c5e255ca8f8f069e0c9785e4288 /tests/spec/arb_shading_language_420pack | |
parent | c3fd064db8c7f91120fd35fb60a8f72363e54114 (diff) |
arb_shading_language_420pack: Test that storage qual after type is an error.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests/spec/arb_shading_language_420pack')
-rw-r--r-- | tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert new file mode 100644 index 000000000..ba449e1b3 --- /dev/null +++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert @@ -0,0 +1,16 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.30 + * require_extensions: GL_ARB_shading_language_420pack + * [end config] + * + * From the GL_ARB_shading_language_420pack spec: + * + * "Variable declarations may have at most one storage qualifier specified in + * front of the type." + * + * Test that a storage qualifier after the type results in a compile error. + */ +#version 130 +#extension GL_ARB_shading_language_420pack: enable +float in x; |