Skip to content

Commit

Permalink
Fix calling convention tests
Browse files Browse the repository at this point in the history
Seems like recent compiler changes no longer allow invalid calling conventions
  • Loading branch information
nyurik authored and emilio committed Jan 29, 2025
1 parent 59a43e1 commit b7c7964
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions bindgen-tests/tests/expectations/tests/abi-override.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bindgen-tests/tests/expectations/tests/mangling-win32.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindgen-tests/tests/headers/abi-override.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bindgen-flags: --override-abi=foo=fastcall --override-abi=bar=stdcall --override-abi=boo=efiapi --override-abi=foobar=efiapi --override-abi qux=system
// bindgen-flags: --override-abi=foo=fastcall --override-abi=bar=stdcall --override-abi=boo=efiapi --override-abi=foobar=efiapi --override-abi qux=system --raw-line '#![cfg(target = "i686-pc-windows-msvc")]'

void foo();
void bar();
Expand Down
2 changes: 1 addition & 1 deletion bindgen-tests/tests/headers/mangling-win32.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bindgen-flags: -- --target=i686-pc-win32
// bindgen-flags: --raw-line '#![cfg(target = "i686-pc-windows-msvc")]' -- --target=i686-pc-win32

extern "C" void foo();

Expand Down

0 comments on commit b7c7964

Please sign in to comment.