view clang/test/Preprocessor/macro_paste_hashhash.c @ 165:597b3f1c2c93

fix call createTailCallEliminationPass
author anatofuz
date Tue, 24 Mar 2020 15:30:52 +0900
parents 1d019706d866
children
line wrap: on
line source

// RUN: %clang_cc1 -E %s | FileCheck %s
#define hash_hash # ## # 
#define mkstr(a) # a 
#define in_between(a) mkstr(a) 
#define join(c, d) in_between(c hash_hash d) 
// CHECK: "x ## y";
join(x, y);

#define FOO(x) A x B
// CHECK: A ## B;
FOO(##);