[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / varargs-aarch64.c
blob145c82105610e0b977c4219ea7109c485d044cc3
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -triple aarch64-linux-gnu
3 void f1(int a, ...) {
4 __builtin_ms_va_list ap;
5 __builtin_ms_va_start(ap, a); // expected-error {{'__builtin_ms_va_start' used in System V ABI function}}
8 void __attribute__((ms_abi)) f2(int a, ...) {
9 __builtin_va_list ap;
10 __builtin_va_start(ap, a); // expected-error {{'va_start' used in Win64 ABI function}}