glcpp: Add test for the #error directive.

This directive is already implemented nicely, but wasn't previously tested.
It will be convenient to use this directive in further tests that rely
on error messages, (such as ensuring that #line correctly sets the line
number in the error message).
This commit is contained in:
Carl Worth 2010-08-23 08:54:06 -07:00
parent a721abfbd1
commit 0acd68c405
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1 @@
#error human error

View file

@ -0,0 +1,3 @@
0:1(2): preprocessor error: #error human error