From: Ian Romanick <[email protected]> Signed-off-by: Ian Romanick <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107772 Cc: Timothy Arceri <[email protected]> Cc: Eero Tamminen <[email protected]> Cc: Mark Janes <[email protected]> --- .../if-statement-in-macro-in-false-ifdef.vert | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/spec/glsl-1.10/preprocessor/if-statement-in-macro-in-false-ifdef.vert
diff --git a/tests/spec/glsl-1.10/preprocessor/if-statement-in-macro-in-false-ifdef.vert b/tests/spec/glsl-1.10/preprocessor/if-statement-in-macro-in-false-ifdef.vert new file mode 100644 index 000000000..938fe31f8 --- /dev/null +++ b/tests/spec/glsl-1.10/preprocessor/if-statement-in-macro-in-false-ifdef.vert @@ -0,0 +1,18 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// [end config] +// +// Reproduces https://bugs.freedesktop.org/show_bug.cgi?id=107772 + +#version 110 + +#ifdef NOT_DEFINED +#define A_MACRO(x) \ + if (x) +#endif + +void main() +{ + gl_Position = vec4(0); +} -- 2.14.4 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
