Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s |
Edward O'Callaghan | 848b9b6 | 2009-10-27 01:45:51 +0000 | [diff] [blame] | 2 | |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 3 | #define hash_hash # ## # |
4 | #define mkstr(a) # a | ||||
5 | #define in_between(a) mkstr(a) | ||||
6 | #define join(c, d) in_between(c hash_hash d) | ||||
7 | char p[] = join(x, y); | ||||
Edward O'Callaghan | 70881df | 2009-10-26 22:51:02 +0000 | [diff] [blame] | 8 | |
9 | // CHECK: char p[] = "x ## y"; | ||||
10 |