glcpp: Add negative tests for redefintions with valueless macros.
authorVinson Lee <vlee@vmware.com>
Tue, 28 Dec 2010 07:20:35 +0000 (23:20 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 28 Dec 2010 07:20:35 +0000 (23:20 -0800)
src/glsl/glcpp/tests/092-redefine-macro-error-2.c [new file with mode: 0644]
src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected [new file with mode: 0644]

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 (file)
index 0000000..3c161a5
--- /dev/null
@@ -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 (file)
index 0000000..0026f91
--- /dev/null
@@ -0,0 +1,10 @@
+0:2(9): preprocessor error: Redefinition of macro A
+
+0:5(9): preprocessor error: Redefinition of macro B
+
+
+
+
+
+
+