Skip to content

Commit 61603fc

Browse files
adetayloremilio
authored andcommitted
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 5880594 commit 61603fc

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

+14
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

+51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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+
};
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)