Add test where a macro formal parameter is the same as an existing macro.
authorCarl Worth <cworth@cworth.org>
Thu, 13 May 2010 19:57:34 +0000 (12:57 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 16:53:50 +0000 (09:53 -0700)
This is a well-defined condition, but something that currently trips up
the implementation. Should be easy to fix.

tests/018-define-func-macro-as-parameter.c [new file with mode: 0644]

diff --git a/tests/018-define-func-macro-as-parameter.c b/tests/018-define-func-macro-as-parameter.c
new file mode 100644 (file)
index 0000000..668130b
--- /dev/null
@@ -0,0 +1,3 @@
+#define x 0
+#define foo(x) x
+foo(1)