summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-11 12:29:22 -0700
committerCarl Worth <cworth@cworth.org>2010-05-11 12:29:22 -0700
commit49206ef4c8adba5427e9d9b5e0dfc11345262890 (patch)
treef677d0ccf9857deabdc29e982837d076bc9866ea
parentbeb26e8ac3152c4a7be43d7ee068b50e17b3ba18 (diff)
Add test for chained #define directives.
Where one macro is defined in terms of another macro. The current implementation does not yet deal with this correctly.
-rw-r--r--tests/002-define-chain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/002-define-chain.c b/tests/002-define-chain.c
new file mode 100644
index 0000000000..87d75c6875
--- /dev/null
+++ b/tests/002-define-chain.c
@@ -0,0 +1,3 @@
+#define foo 1
+#define bar foo
+bar