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>
This commit is contained in:
Carl Worth 2014-06-11 17:20:40 -07:00
parent 64b7fc2dd1
commit 1a46dd6edd
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#undef __LINE__
#undef __FILE__
#undef __VERSION__

View file

@ -0,0 +1,7 @@
0:1(2): preprocessor error: Built-in (pre-defined) macro names can not be undefined.
0:2(1): preprocessor error: Built-in (pre-defined) macro names can not be undefined.
0:3(1): preprocessor error: Built-in (pre-defined) macro names can not be undefined.