diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/c-variadic/variadic-ffi-2.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/c-variadic/variadic-ffi-2.rs b/src/test/ui/c-variadic/variadic-ffi-2.rs new file mode 100644 index 000000000..224ac16f4 --- /dev/null +++ b/src/test/ui/c-variadic/variadic-ffi-2.rs @@ -0,0 +1,8 @@ +// ignore-arm stdcall isn't supported + +fn baz(f: extern "stdcall" fn(usize, ...)) { + //~^ ERROR: variadic function must have C or cdecl calling convention + f(22, 44); +} + +fn main() {} |