Add test for pasting empty formals

llvm-svn: 38763
This commit is contained in:
Chris Lattner 2006-07-28 05:13:36 +00:00
parent f3f1c709cf
commit b1d2594456
2 changed files with 16 additions and 3 deletions

View File

@ -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()

View File

@ -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