[Piglit] [PATCH] bit-not-09: Add new test case for bitwise complement of a boolean.
Vinson Lee
vlee at vmware.com
Wed Nov 9 11:47:12 PST 2011
Reproduces a crash in the Mesa GLSL compiler.
---
tests/glslparsertest/glsl2/bit-not-09.frag | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
create mode 100644 tests/glslparsertest/glsl2/bit-not-09.frag
diff --git a/tests/glslparsertest/glsl2/bit-not-09.frag b/tests/glslparsertest/glsl2/bit-not-09.frag
new file mode 100644
index 0000000..4f3a648
--- /dev/null
+++ b/tests/glslparsertest/glsl2/bit-not-09.frag
@@ -0,0 +1,11 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.20
+// [end config]
+
+/* FAIL - bitwise operations aren't supported in 1.20. */
+#version 120
+void main()
+{
+ int x = ~false;
+}
--
1.7.1
More information about the Piglit
mailing list