mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
a721abfbd1
commit
0acd68c405
2 changed files with 4 additions and 0 deletions
1
src/glsl/glcpp/tests/090-hash-error.c
Normal file
1
src/glsl/glcpp/tests/090-hash-error.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#error human error
|
||||
3
src/glsl/glcpp/tests/090-hash-error.c.expected
Normal file
3
src/glsl/glcpp/tests/090-hash-error.c.expected
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
0:1(2): preprocessor error: #error human error
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue