llvm-for-llvmta/tools/clang/test/Sema/varargs-win64.c

7 lines
236 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-pc-win32
void __attribute__((sysv_abi)) foo(int a, ...) {
__builtin_va_list ap;
__builtin_va_start(ap, a); // expected-error {{'va_start' used in System V ABI function}}
}