Skip to content

Commit 1fb6fa2

Browse files
committed
Add tests
1 parent 25db012 commit 1fb6fa2

File tree

2 files changed

+129
-0
lines changed

2 files changed

+129
-0
lines changed

bindgen-tests/tests/expectations/tests/derive-custom-cli.rs

+115
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,14 @@
1+
// bindgen-flags: --default-enum-style rust --default-non-copy-union-style manually_drop --no-default=".*" --no-hash=".*" --no-partialeq=".*" --no-debug=".*" --no-copy=".*" --with-derive-custom="foo.*=Debug" --with-derive-custom-struct="foo.*=Default" --with-derive-custom-enum="foo.*=Copy" --with-derive-custom-union="foo.*=Hash"
2+
struct foo_struct {
3+
int inner;
4+
};
5+
enum foo_enum {
6+
inner = 0
7+
};
8+
union foo_union {
9+
int fst;
10+
float snd;
11+
};
12+
struct non_matching {
13+
int inner;
14+
};

0 commit comments

Comments
 (0)