summaryrefslogtreecommitdiffstats
path: root/tests/ui/c-variadic/variadic-ffi-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/c-variadic/variadic-ffi-2.rs')
-rw-r--r--tests/ui/c-variadic/variadic-ffi-2.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/c-variadic/variadic-ffi-2.rs b/tests/ui/c-variadic/variadic-ffi-2.rs
index c34b7e55f..67a0a9a1d 100644
--- a/tests/ui/c-variadic/variadic-ffi-2.rs
+++ b/tests/ui/c-variadic/variadic-ffi-2.rs
@@ -3,10 +3,13 @@
fn baz(f: extern "stdcall" fn(usize, ...)) {
//~^ ERROR: C-variadic function must have a compatible calling convention,
- // like C, cdecl, win64, sysv64 or efiapi
+ // like C, cdecl, aapcs, win64, sysv64 or efiapi
f(22, 44);
}
+fn aapcs(f: extern "aapcs" fn(usize, ...)) {
+ f(22, 44);
+}
fn sysv(f: extern "sysv64" fn(usize, ...)) {
f(22, 44);
}