From: Carl Worth Date: Wed, 2 Jul 2014 00:49:45 +0000 (-0700) Subject: glsl/glcpp: Add tests for #define followed by comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e84e159caac200287f1aada3c5c57aa3bf5cc376;p=mesa.git 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 --- 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 de3ed986dc9..30e128db4c5 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 000aeaf0f71..42b02d1a8a1 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!