summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glcpp/tests/139-define-without-macro-name.c2
-rw-r--r--src/glsl/glcpp/tests/139-define-without-macro-name.c.expected2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/139-define-without-macro-name.c b/src/glsl/glcpp/tests/139-define-without-macro-name.c
new file mode 100644
index 00000000000..de3ed986dc9
--- /dev/null
+++ b/src/glsl/glcpp/tests/139-define-without-macro-name.c
@@ -0,0 +1,2 @@
+#define
+Error expected because no macro name is ever given!
diff --git a/src/glsl/glcpp/tests/139-define-without-macro-name.c.expected b/src/glsl/glcpp/tests/139-define-without-macro-name.c.expected
new file mode 100644
index 00000000000..000aeaf0f71
--- /dev/null
+++ b/src/glsl/glcpp/tests/139-define-without-macro-name.c.expected
@@ -0,0 +1,2 @@
+0:1(1): preprocessor error: #define without macro name
+Error expected because no macro name is ever given!