brintos

brintos / llvm-project-archived public Read only

0
0
Text · 812 B · d420eb4 Raw
39 lines · c
1// RUN: %clang_cc1 -E -dM %s -o - | FileCheck %s -strict-whitespace2 3// Space at end even without expansion tokens4// CHECK: #define A(x) 5#define A(x)6 7// Space before expansion list.8// CHECK: #define B(x,y) x y9#define B(x,y)x y10 11// No space in argument list.12// CHECK: #define C(x,y) x y13#define C(x, y) x y14 15// No paste avoidance.16// CHECK: #define D() ..17#define D() ..18 19// Simple test.20// CHECK: #define E .21// CHECK: #define F X()Y22#define E .23#define F X()Y24 25// gcc prints macros at end of translation unit, so last one wins.26// CHECK: #define G 227#define G 128#undef G29#define G 230 31// Variadic macros of various sorts. PR569932 33// CHECK: H(x,...) __VA_ARGS__34#define H(x, ...) __VA_ARGS__35// CHECK: I(...) __VA_ARGS__36#define I(...) __VA_ARGS__37// CHECK: J(x...) __VA_ARGS__38#define J(x ...) __VA_ARGS__39