diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-29 05:54:19 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-29 05:54:19 -0700 |
commit | b06096e86eda1257769156523b5738044c6a2b10 (patch) | |
tree | e6b3ec4a83073f512fe73e4f2e8efe26aa43a2a0 /tests | |
parent | 631016946ca8134244c4e58bef6863d204b1119b (diff) |
Add test and fix bugs with multiple token-pasting on the same line.
The list replacement when token pasting was broken, (failing to
properly update the list's tail pointer). Also, memory management when
pasting was broken, (modifying the original token's string which would
cause problems with multiple calls to a macro which pasted a literal
string). We didn't catch this with previous tests because they only
pasted argument values.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/072-token-pasting-same-line.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/072-token-pasting-same-line.c b/tests/072-token-pasting-same-line.c new file mode 100644 index 0000000000..e421e9d5e2 --- /dev/null +++ b/tests/072-token-pasting-same-line.c @@ -0,0 +1,2 @@ +#define paste(x) success_ ## x +paste(1) paste(2) paste(3) |