glcpp: Update tests for new #undef of built-in macro rules.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Aug 2016 04:00:31 +0000 (21:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Aug 2016 05:55:34 +0000 (22:55 -0700)
commit1f47f78fc3193ecff13799305a8e35af82e68a06
tree2a9d5ccedff0982b4a15a1b4cf1084f3bb758180
parentc2f225203721681fe964cb6f1f4fec317260a91e
glcpp: Update tests for new #undef of built-in macro rules.

Ian recently changed the preprocessor to allow this in most GLSL
versions, but not GLSL ES 3.00+.  This patch converts the existing
test that expects a failure to a #version 300 es shader, and adds
a #version 110 shader to make sure that it's allowed.

Fixes 'make check'.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97307
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/compiler/glsl/glcpp/tests/120-undef-builtin.c
src/compiler/glsl/glcpp/tests/120-undef-builtin.c.expected
src/compiler/glsl/glcpp/tests/147-undef-builtin-allowed.c [new file with mode: 0644]
src/compiler/glsl/glcpp/tests/147-undef-builtin-allowed.c.expected [new file with mode: 0644]