glsl/glcpp: Add test to ensure compiler won't allow #undef for some builtins
authorCarl Worth <cworth@cworth.org>
Thu, 12 Jun 2014 00:20:40 +0000 (17:20 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 9 Jul 2014 19:05:13 +0000 (12:05 -0700)
commit1a46dd6edd6a50624fd5cc876bc22dce99bd9326
tree1863a91f0904247b4314cbb717c5bae680d379ba
parent64b7fc2dd16cd4a4966a4ed8e9f239c53715f1d5
glsl/glcpp: Add test to ensure compiler won't allow #undef for some builtins

Currently verifying that an #undef of __FILE__, __LINE__, or __VERSION__ will
generate an error.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/glcpp/tests/120-undef-builtin.c [new file with mode: 0644]
src/glsl/glcpp/tests/120-undef-builtin.c.expected [new file with mode: 0644]