forked from OSchip/llvm-project
parent
f3f1c709cf
commit
b1d2594456
|
@ -0,0 +1,13 @@
|
|||
// RUN: clang -E %s | grep 'a:Y' &&
|
||||
// RUN: clang -E %s | grep 'b:Y' &&
|
||||
// RUN: clang -E %s | grep 'c:YY'
|
||||
|
||||
#define FOO(X) X ## Y
|
||||
a:FOO()
|
||||
|
||||
#define FOO2(X) Y ## X
|
||||
b:FOO2()
|
||||
|
||||
#define FOO3(X) X ## Y ## X ## Y ## X ## X
|
||||
c:FOO3()
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
; RUN: clang -E %s | grep '1: aaab 2' &&
|
||||
; RUN: clang -E %s | grep '2: 2 baaa' &&
|
||||
; RUN: clang -E %s | grep '3: 2 xx'
|
||||
// RUN: clang -E %s | grep '1: aaab 2' &&
|
||||
// RUN: clang -E %s | grep '2: 2 baaa' &&
|
||||
// RUN: clang -E %s | grep '3: 2 xx'
|
||||
|
||||
#define a(n) aaa ## n
|
||||
#define b 2
|
||||
|
|
Loading…
Reference in New Issue