From 99ab508896e5b7e24b602da60067e8bd7b3f923e Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 9 Nov 2011 11:44:18 -0800 Subject: [PATCH] bit-not-09: Add new test case for bitwise complement of a boolean. 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