summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro_fn_varargs_named.c
blob: d27f5b3985baad193afc5bf4a2fd4c0f61999231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -E %s | FileCheck %s --match-full-lines --strict-whitespace --check-prefix CHECK-1
// CHECK-1:a: x
// RUN: %clang_cc1 -E %s | FileCheck %s --match-full-lines --strict-whitespace --check-prefix CHECK-2
// CHECK-2:b: x y, z,h
// RUN: %clang_cc1 -E %s | FileCheck %s --match-full-lines --strict-whitespace --check-prefix CHECK-3
// CHECK-3:c: foo(x)

#define A(b, c...) b c
a: A(x)
b: A(x, y, z,h)

#define B(b, c...) foo(b, ## c)
c: B(x)
OpenPOWER on IntegriCloud