summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-08-17 23:19:01 -0700
committerCarl Worth <cworth@cworth.org>2010-08-17 23:41:53 -0700
commit105e2137d67b98c24251be3586985fb61aeaf28a (patch)
treea65af90da4160cb566bb52169483feba805ec387 /src/glsl/glcpp/tests/088-redefine-macro-legitimate.c
parent97638aa77c509cd37dea499202d31357926a0e2a (diff)
glcpp: Add two new tests for testing redefined macros.
The specification says that redefining a macro is an error, unless the new definitions is identical to the old one, (identical replacement lists but ignoring differing amounts of whitespace).
Diffstat (limited to 'src/glsl/glcpp/tests/088-redefine-macro-legitimate.c')
-rw-r--r--src/glsl/glcpp/tests/088-redefine-macro-legitimate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c b/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c
new file mode 100644
index 0000000000..0e0666b8b3
--- /dev/null
+++ b/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c
@@ -0,0 +1,5 @@
+#define abc 123
+#define abc 123
+
+#define foo(x) (x)+23
+#define foo(x) ( x ) + 23