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

Signed-off-by: Kenneth Graunke <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to