From f3319561a476bd806005551251dbc6a37f266e03 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 27 Dec 2010 23:20:35 -0800 Subject: [PATCH] glcpp: Add negative tests for redefintions with valueless macros. --- src/glsl/glcpp/tests/092-redefine-macro-error-2.c | 5 +++++ .../glcpp/tests/092-redefine-macro-error-2.c.expected | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/glsl/glcpp/tests/092-redefine-macro-error-2.c create mode 100644 src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected diff --git a/src/glsl/glcpp/tests/092-redefine-macro-error-2.c b/src/glsl/glcpp/tests/092-redefine-macro-error-2.c new file mode 100644 index 00000000000..3c161a5c501 --- /dev/null +++ b/src/glsl/glcpp/tests/092-redefine-macro-error-2.c @@ -0,0 +1,5 @@ +#define A +#define A 1 + +#define B 1 +#define B diff --git a/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected b/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected new file mode 100644 index 00000000000..0026f91f32b --- /dev/null +++ b/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected @@ -0,0 +1,10 @@ +0:2(9): preprocessor error: Redefinition of macro A + +0:5(9): preprocessor error: Redefinition of macro B + + + + + + + -- 2.30.2