OSDN Git Service

Add two more (failing) tests from the take-2 branch.
authorCarl Worth <cworth@cworth.org>
Fri, 28 May 2010 22:15:59 +0000 (15:15 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 28 May 2010 22:15:59 +0000 (15:15 -0700)
These tests were recently fixed on the take-2 branch, but will require
additional work before they will pass here.

tests/058-token-pasting-empty-arguments.c [new file with mode: 0644]
tests/060-left-paren-in-macro-right-paren-in-text.c [new file with mode: 0644]

diff --git a/tests/058-token-pasting-empty-arguments.c b/tests/058-token-pasting-empty-arguments.c
new file mode 100644 (file)
index 0000000..8ac260c
--- /dev/null
@@ -0,0 +1,5 @@
+#define paste(x,y) x ## y
+paste(a,b)
+paste(a,)
+paste(,b)
+paste(,)
diff --git a/tests/060-left-paren-in-macro-right-paren-in-text.c b/tests/060-left-paren-in-macro-right-paren-in-text.c
new file mode 100644 (file)
index 0000000..ed80ea8
--- /dev/null
@@ -0,0 +1,3 @@
+#define double(a) a*2
+#define foo double(
+foo 5)