mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 09:16:05 +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
6 lines
219 B
C
6 lines
219 B
C
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple i386-apple-darwin9
|
|
|
|
void foo(int a, ...) {
|
|
__builtin_ms_va_start((void *)0, a); // expected-error {{this builtin is only available on x86-64 and aarch64 targets}}
|
|
}
|