diff --git a/Cargo.lock b/Cargo.lock index b1cb43c41..4b235d245 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -108,9 +108,9 @@ dependencies = [ [[package]] name = "autocxx-bindgen" -version = "0.62.0" +version = "0.62.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8678622fb7e728ec752c0e04f2d03cf2c8bfe5e79f7015f756354744b287b478" +checksum = "91f11671d76c2c02f3e6906bb06b13a9046cd069d095ff14a94d9c9a7bd40a20" dependencies = [ "bitflags", "cexpr", diff --git a/engine/Cargo.toml b/engine/Cargo.toml index 99f8ee25b..f0d9d16df 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -30,7 +30,7 @@ log = "0.4" proc-macro2 = "1.0.11" quote = "1.0" indoc = "1.0" -autocxx-bindgen = "=0.62.0" +autocxx-bindgen = "=0.62.1" #autocxx-bindgen = { git = "https://github.com/adetaylor/rust-bindgen", branch = "merge-upstream-0.62" } itertools = "0.10.3" cc = { version = "1.0", optional = true } diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 3d7a67041..af1d380de 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -7335,14 +7335,24 @@ fn test_issue_956() { let hdr = indoc! {" #include inline void take_int(int&) {} - inline void take_uin16(uint16_t&) {} - inline void take_char16(char16_t &) {} + inline void take_uint16(uint16_t) {} + inline void take_us(unsigned short) {} + inline void take_char16(char16_t) {} + inline void take_uint16_ref(uint16_t&) {} + inline void take_char16_ref(char16_t &) {} "}; run_test( "", hdr, quote! {}, - &["take_int", "take_uin16", "take_char16"], + &[ + "take_int", + "take_uint16", + "take_char16", + "take_uint16_ref", + "take_char16_ref", + "take_us", + ], &[], ); } @@ -11805,6 +11815,18 @@ fn test_issue_1192() { ); } +#[test] +fn test_issue_1214() { + let hdr = indoc! {" + #include + enum class C: uint16_t { + A, + B, + }; + "}; + run_test("", hdr, quote! {}, &["C"], &[]); +} + // Yet to test: // - Ifdef // - Out param pointers