mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 06:16:06 +00:00

Summary: This change adds support for `__builtin_ms_va_list`, a GCC extension for variadic `ms_abi` functions. The existing `__builtin_va_list` support is inadequate for this because `va_list` is defined differently in the Win64 ABI vs. the System V/AMD64 ABI. Depends on D1622. Reviewers: rsmith, rnk, rjmccall CC: cfe-commits Differential Revision: http://reviews.llvm.org/D1623 llvm-svn: 247941
7 lines
236 B
C
7 lines
236 B
C
// 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}}
|
|
}
|