mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 11:36:09 +00:00

Move builtins from the x86 specific scope into the global scope. Their use is still limited to x86_64 and aarch64 though. This allows wine on aarch64 to properly handle variadic functions. Differential Revision: https://reviews.llvm.org/D34475 llvm-svn: 308218
12 lines
392 B
C
12 lines
392 B
C
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple aarch64-linux-gnu
|
|
|
|
void f1(int a, ...) {
|
|
__builtin_ms_va_list ap;
|
|
__builtin_ms_va_start(ap, a); // expected-error {{'__builtin_ms_va_start' used in System V ABI function}}
|
|
}
|
|
|
|
void __attribute__((ms_abi)) f2(int a, ...) {
|
|
__builtin_va_list ap;
|
|
__builtin_va_start(ap, a); // expected-error {{'va_start' used in Win64 ABI function}}
|
|
}
|