[Piglit] [PATCH 2/2] glsl-4.60: add a test that allows extra semicolons at global scope

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Aug 10 16:44:18 UTC 2017


Cc: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 .../compiler/extra-semilons-at-global-scope.frag        | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag

diff --git a/tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag b/tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag
new file mode 100644
index 000000000..9da6ade08
--- /dev/null
+++ b/tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.60
+// [end config]
+
+#version 460
+
+// From the GLSL 4.60 spec, section 1.2.1 (Summary of Changes from Revision 7
+// of GLSL Version 4.50):
+//
+//  "Private Bug 16070: Allow extra semi-colons at global scope"
+
+uniform int i;;
+
+void main()
+{
+}
-- 
2.14.0



More information about the Piglit mailing list