diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-03-13 12:21:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 12:21:39 -0400 |
commit | 22041e13d08dbd4cb0ea777fa540897735d9e7c2 (patch) | |
tree | 330e9aafb831b9da9b22896ff49efe91394c8abe /tests/headers/issue-1198-alias-rust-const-mod-enum.h | |
parent | 9a0edb86548dca98cce6aad9025f5a8fc92a8522 (diff) | |
parent | 8c9b3ab4d650bd30b5f50cc85a19621f920f91c6 (diff) |
Auto merge of #1272 - tmfink:issue-1198, r=emilio
Declare precedence on enum types
Fixes issue #1198 where an enum matches the pattern for multiple enum types, such as constified module enum AND rustified enum.
Documents precedence in `Builder` doc comment.
Diffstat (limited to 'tests/headers/issue-1198-alias-rust-const-mod-enum.h')
-rw-r--r-- | tests/headers/issue-1198-alias-rust-const-mod-enum.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/headers/issue-1198-alias-rust-const-mod-enum.h b/tests/headers/issue-1198-alias-rust-const-mod-enum.h new file mode 100644 index 00000000..944fac31 --- /dev/null +++ b/tests/headers/issue-1198-alias-rust-const-mod-enum.h @@ -0,0 +1,13 @@ +// bindgen-flags: --rustified-enum '.*' --constified-enum-module '.*' + +typedef enum MyDupeEnum { + A = 0, + A_alias = 0, + B, +} MyDupeEnum; + +enum MyOtherDupeEnum { + C = 0, + C_alias = 0, + D, +};
\ No newline at end of file |