diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/negativeArraySize.comp')
-rw-r--r-- | chromium/third_party/glslang/src/Test/negativeArraySize.comp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/negativeArraySize.comp b/chromium/third_party/glslang/src/Test/negativeArraySize.comp new file mode 100644 index 00000000000..20636c0a7d0 --- /dev/null +++ b/chromium/third_party/glslang/src/Test/negativeArraySize.comp @@ -0,0 +1,10 @@ +#version 310 es + +#ifdef GL_ES +precision mediump float; +#endif + +void main() +{ + float f[-2]; // cannot declare arrays with negative size +} |