diff options
Diffstat (limited to 'test/Preprocessor/macro_paste_msextensions.c')
-rw-r--r-- | test/Preprocessor/macro_paste_msextensions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_paste_msextensions.c b/test/Preprocessor/macro_paste_msextensions.c index afdcdbd..aa5f41f 100644 --- a/test/Preprocessor/macro_paste_msextensions.c +++ b/test/Preprocessor/macro_paste_msextensions.c @@ -32,3 +32,10 @@ nested(baz) rise of the dead tokens bar(q) // CHECK: abc(baz(q)) + + +#define str(x) #x +#define collapse_spaces(a, b, c, d) str(a ## - ## b ## - ## c ## d) +collapse_spaces(1a, b2, 3c, d4) + +// CHECK: "1a-b2-3cd4" |