diff options
author | Jean-Philippe Dufraigne <j.dufraigne@gmail.com> | 2018-08-19 18:40:08 +0100 |
---|---|---|
committer | Jean-Philippe Dufraigne <j.dufraigne@gmail.com> | 2018-08-19 20:09:56 +0100 |
commit | cd65068944c3673acbea577425b392c24c5f888f (patch) | |
tree | fee5de3428ace976796492e17732cd8f6087ff41 /tests/headers/abi_variadic_function.hpp | |
parent | 8f8703f0122abef7be5fba33cbba629ddd1655c1 (diff) |
Not gnereate binding for variadic function with ms_abi
rustc fail to compile variadic function with ms_abi:
error[E0045]: variadic function must have C or cdecl calling convention
As suggested in issue, this short term fix: not generate binding
and emit a warning.
Fixes #997
Diffstat (limited to 'tests/headers/abi_variadic_function.hpp')
-rw-r--r-- | tests/headers/abi_variadic_function.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/headers/abi_variadic_function.hpp b/tests/headers/abi_variadic_function.hpp new file mode 100644 index 00000000..2141535c --- /dev/null +++ b/tests/headers/abi_variadic_function.hpp @@ -0,0 +1,4 @@ +// bindgen-flags: -- -std=c++11 + +char __attribute__((ms_abi)) a(char, ...); +char b(char, ...); |