Skip to content

Commit 148f8ec

Browse files
committed
Add extra tests.
These files aspects of bindgen behavior which may not be generally useful to most consumers but are more important to downstream postprocessors such as autocxx. One of them tests enums embedded within classes, and the other tests various types of C++ constructor. Part of google/autocxx#124.
1 parent 76920aa commit 148f8ec

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

bindgen-tests/tests/expectations/tests/class_with_enum.rs

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/expectations/tests/special-members.rs

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class A {
2+
public:
3+
enum B {
4+
B1,
5+
B2,
6+
};
7+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class A {
2+
public:
3+
A();
4+
A(A&);
5+
A(A&&);
6+
~A();
7+
};

0 commit comments

Comments
 (0)