[Piglit] [PATCH 3/6] glslparsertest: Add test for bit-not in GLSL 1.20
Chad Versace
chad at chad-versace.us
Tue Oct 12 17:53:45 PDT 2010
From: Chad Versace <chad.versace at intel.com>
Of course, the test should fail because bit operators don't exist in GLSL
1.20.
---
tests/glslparser.tests | 1 +
tests/glslparsertest/glsl2/bit-not-02.frag | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
create mode 100644 tests/glslparsertest/glsl2/bit-not-02.frag
diff --git a/tests/glslparser.tests b/tests/glslparser.tests
index 5fe79e8..8500fbd 100644
--- a/tests/glslparser.tests
+++ b/tests/glslparser.tests
@@ -222,6 +222,7 @@ add_otherglslparsertest('glsl2/attribute-09.vert', 'fail')
add_otherglslparsertest('glsl2/attribute-10.vert', 'fail', '1.20')
add_otherglslparsertest('glsl2/attribute-11.vert', 'fail', '1.30')
add_otherglslparsertest('glsl2/bit-not-01.frag', 'fail')
+add_otherglslparsertest('glsl2/bit-not-02.frag', 'fail', '1.20')
add_otherglslparsertest('glsl2/builtin-functions-110.vert', 'pass')
add_otherglslparsertest('glsl2/builtin-functions-110.frag', 'pass')
add_otherglslparsertest('glsl2/builtin-functions-120.vert', 'pass', '1.20')
diff --git a/tests/glslparsertest/glsl2/bit-not-02.frag b/tests/glslparsertest/glsl2/bit-not-02.frag
new file mode 100644
index 0000000..8d2c9b4
--- /dev/null
+++ b/tests/glslparsertest/glsl2/bit-not-02.frag
@@ -0,0 +1,6 @@
+/* FAIL - bitwise operations aren't supported in 1.20. */
+#version 120
+void main()
+{
+ int x = ~0 - 1;
+}
--
1.7.1
More information about the Piglit
mailing list