diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-04-09 13:16:15 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-04-09 20:40:43 -0400 |
commit | 45c44937a02fa9b934c30b0078b1310baf2a31f3 (patch) | |
tree | a6af3d05b50116f932594159a00cce545057d927 /tests/spec/glsl-es-3.00 | |
parent | 8e71b836e8eaa06b68bbfe3a4adb36de637a61a9 (diff) |
ES 3.00: add a test to ensure that 'buffer' is a legal variable name
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'tests/spec/glsl-es-3.00')
-rw-r--r-- | tests/spec/glsl-es-3.00/compiler/buffer-variable-name.vert | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-3.00/compiler/buffer-variable-name.vert b/tests/spec/glsl-es-3.00/compiler/buffer-variable-name.vert new file mode 100644 index 000000000..b001d163e --- /dev/null +++ b/tests/spec/glsl-es-3.00/compiler/buffer-variable-name.vert @@ -0,0 +1,17 @@ +/* [config] + * expect_result: pass + * glsl_version: 3.00 es + * [end config] + * + * Make sure that 'buffer' is a valid identifier in ES 3.0. It becomes a + * keyword in ES 3.1 + */ +#version 300 es + +in vec4 position; + +void main() +{ + float buffer = 2.0; + gl_Position = position * buffer; +} |