[Piglit] [PATCH 3/4] glsl-1.10: Test that __VERSION__ == 110 even without #version specified.

Kenneth Graunke kenneth at whitecape.org
Wed Aug 28 12:43:34 PDT 2013


Again, following the pattern of the other __VERSION__ macro tests.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 tests/spec/glsl-1.10/compiler/version-macro-default.frag | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 tests/spec/glsl-1.10/compiler/version-macro-default.frag

diff --git a/tests/spec/glsl-1.10/compiler/version-macro-default.frag b/tests/spec/glsl-1.10/compiler/version-macro-default.frag
new file mode 100644
index 0000000..fa26911
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/version-macro-default.frag
@@ -0,0 +1,13 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+#if !defined __VERSION__
+#error __VERSION__ not defined.
+#endif
+#if __VERSION__ != 110
+#error __VERSION__ is not 110
+#endif
+
+void main() { }
-- 
1.8.3.4



More information about the Piglit mailing list