Skip to content

Commit

Permalink
win destructor test
Browse files Browse the repository at this point in the history
  • Loading branch information
xTachyon authored and emilio committed Dec 18, 2023
1 parent 138cdae commit 5ff913a
Show file tree
Hide file tree
Showing 2 changed files with 230 additions and 0 deletions.
201 changes: 201 additions & 0 deletions bindgen-tests/tests/expectations/tests/win32-dtors.rs

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

29 changes: 29 additions & 0 deletions bindgen-tests/tests/headers/win32-dtors.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// bindgen-flags: --rust-target 1.0 -- --target=x86_64-pc-windows-msvc

struct CppObj {
int x;

CppObj(int x);
~CppObj();
};

struct CppObj2 {
int x;

CppObj2(int x);
virtual ~CppObj2();
};

struct CppObj3 : CppObj2 {
int x;

CppObj3(int x);
virtual ~CppObj3();
};

struct CppObj4 : CppObj2 {
int x;

CppObj4(int x);
~CppObj4();
};

0 comments on commit 5ff913a

Please sign in to comment.