summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/090-hash-error.c
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-08-23 08:54:06 -0700
committerCarl Worth <[email protected]>2010-08-23 10:48:10 -0700
commit0acd68c4050fea82797f80ad90212926df4cf001 (patch)
tree5d2d08a47e75a36be8c2773a8dca56da6c38cb86 /src/glsl/glcpp/tests/090-hash-error.c
parenta721abfbd1724e83381b46fc670bb38fbde76f69 (diff)
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).
Diffstat (limited to 'src/glsl/glcpp/tests/090-hash-error.c')
-rw-r--r--src/glsl/glcpp/tests/090-hash-error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/090-hash-error.c b/src/glsl/glcpp/tests/090-hash-error.c
new file mode 100644
index 00000000000..d19bb7faed8
--- /dev/null
+++ b/src/glsl/glcpp/tests/090-hash-error.c
@@ -0,0 +1 @@
+#error human error