2011-07-07 11:40:37 +08:00
|
|
|
// RUN: %clang_cc1 -E %s | FileCheck %s
|
2006-07-19 16:01:28 +08:00
|
|
|
#define hash_hash # ## #
|
|
|
|
#define mkstr(a) # a
|
|
|
|
#define in_between(a) mkstr(a)
|
|
|
|
#define join(c, d) in_between(c hash_hash d)
|
2011-07-07 11:40:37 +08:00
|
|
|
// CHECK: "x ## y";
|
2006-07-19 16:01:28 +08:00
|
|
|
join(x, y);
|
|
|
|
|
2011-07-07 11:40:37 +08:00
|
|
|
#define FOO(x) A x B
|
|
|
|
// CHECK: A ## B;
|
|
|
|
FOO(##);
|