forked from reitermarkus/rust-bindgen
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Improve enum tests to avoid duplication, and add a test for ru…
- Loading branch information
1 parent
542e0d0
commit 0175c7b
Showing
12 changed files
with
234 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
pub struct a { | ||
pub _address: u8, | ||
} | ||
pub type a__bindgen_ty_1 = i32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
// bindgen-flags: --default-enum-style=bitfield --constified-enum-module=Neg | ||
|
||
enum Foo { | ||
Bar = 0, | ||
Qux | ||
}; | ||
|
||
enum Neg { | ||
MinusOne = -1, | ||
One = 1, | ||
}; | ||
#include "enum.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
// bindgen-flags: --default-enum-style=consts --constified-enum-module=Neg | ||
|
||
enum Foo { | ||
Bar = 0, | ||
Qux | ||
}; | ||
|
||
enum Neg { | ||
MinusOne = -1, | ||
One = 1, | ||
}; | ||
#include "enum.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
// bindgen-flags: --default-enum-style=moduleconsts --constified-enum-module=Neg | ||
|
||
enum Foo { | ||
Bar = 0, | ||
Qux | ||
}; | ||
|
||
enum Neg { | ||
MinusOne = -1, | ||
One = 1, | ||
}; | ||
#include "enum.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
// bindgen-flags: --default-enum-style=rust --constified-enum-module=Neg | ||
|
||
enum Foo { | ||
Bar = 0, | ||
Qux | ||
}; | ||
|
||
enum Neg { | ||
MinusOne = -1, | ||
One = 1, | ||
}; | ||
#include "enum.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters