| // RUN: %clang_cc1 -E -dM %s -o - | FileCheck %s -strict-whitespace |
| // Space at end even without expansion tokens |
| // Space before expansion list. |
| // CHECK: #define B(x,y) x y |
| // No space in argument list. |
| // CHECK: #define C(x,y) x y |
| // gcc prints macros at end of translation unit, so last one wins. |
| // Variadic macros of various sorts. PR5699 |
| // CHECK: H(x,...) __VA_ARGS__ |
| #define H(x, ...) __VA_ARGS__ |
| // CHECK: I(...) __VA_ARGS__ |
| #define I(...) __VA_ARGS__ |
| // CHECK: J(x...) __VA_ARGS__ |
| #define J(x ...) __VA_ARGS__ |