summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2014-07-01 17:49:45 -0700
committerIan Romanick <ian.d.romanick@intel.com>2014-08-07 16:08:29 -0700
commite84e159caac200287f1aada3c5c57aa3bf5cc376 (patch)
treee2ae90a71fd135b59f8c12ede84ab6baf0d2090b /src/glsl/glcpp
parentb4b2a5c3f31f0f66d3ddf1e994c099304d99ed4b (diff)
downloadexternal_mesa3d-e84e159caac200287f1aada3c5c57aa3bf5cc376.zip
external_mesa3d-e84e159caac200287f1aada3c5c57aa3bf5cc376.tar.gz
external_mesa3d-e84e159caac200287f1aada3c5c57aa3bf5cc376.tar.bz2
glsl/glcpp: Add tests for #define followed by comments
This simply tests the previous commit, (that #define followed by a comment will still generate the expected "#define without macro name" error message). Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r--src/glsl/glcpp/tests/139-define-without-macro-name.c5
-rw-r--r--src/glsl/glcpp/tests/139-define-without-macro-name.c.expected5
2 files changed, 8 insertions, 2 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
index de3ed98..30e128d 100644
--- a/src/glsl/glcpp/tests/139-define-without-macro-name.c
+++ b/src/glsl/glcpp/tests/139-define-without-macro-name.c
@@ -1,2 +1,5 @@
#define
-Error expected because no macro name is ever given!
+#define
+#define /*...*/
+#define //...
+Errors 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
index 000aeaf..42b02d1 100644
--- a/src/glsl/glcpp/tests/139-define-without-macro-name.c.expected
+++ b/src/glsl/glcpp/tests/139-define-without-macro-name.c.expected
@@ -1,2 +1,5 @@
0:1(1): preprocessor error: #define without macro name
-Error expected because no macro name is ever given!
+0:2(1): preprocessor error: #define without macro name
+0:3(1): preprocessor error: #define without macro name
+0:4(1): preprocessor error: #define without macro name
+Errors expected because no macro name is ever given!