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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
455 B
C
Raw Normal View History

// 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)
2006-07-29 09:24:46 +08:00
#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)