llvm-project/clang/test/Preprocessor/macro_fn_preexpand.c

13 lines
242 B
C
Raw Normal View History

// RUN: clang-cc %s -E | grep 'pre: 1 1 X'
// RUN: clang-cc %s -E | grep 'nopre: 1A(X)'
/* Preexpansion of argument. */
2006-07-17 02:15:05 +08:00
#define A(X) 1 X
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