2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc %s -E | grep 'pre: 1 1 X'
|
2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc %s -E | grep 'nopre: 1A(X)'
|
2006-07-19 13:48:15 +08:00
|
|
|
|
|
|
|
/* Preexpansion of argument. */
|
2006-07-17 02:15:05 +08:00
|
|
|
#define A(X) 1 X
|
2006-07-19 13:48:15 +08:00
|
|
|
pre: A(A(X))
|
|
|
|
|
|
|
|
/* The ## operator disables preexpansion. */
|
|
|
|
#undef A
|
|
|
|
#define A(X) 1 ## X
|
|
|
|
nopre: A(A(X))
|
2006-07-17 02:15:05 +08:00
|
|
|
|