From 4e962d3810943e322ea249aa73101525c454a5f8 Mon Sep 17 00:00:00 2001 From: Jeremy Jacobson Date: Mon, 1 Aug 2022 12:04:02 -0700 Subject: [PATCH] Add test for #1141: wchar_t -> uint32_t --- integration-tests/tests/integration_test.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 430edf322..6c3a0640a 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -11541,6 +11541,21 @@ fn test_issue_1125() { ); } +#[test] +fn test_wchar_issue_1141() { + let cxx = indoc! {" + wchar_t next_wchar(wchar_t c) { + return c + 1; + } + "}; + let hdr = indoc! {" + #include + wchar_t next_wchar(wchar_t c); + "}; + let rs = quote! {}; + run_test(cxx, hdr, rs, &["next_wchar"], &[]); +} + // Yet to test: // - Ifdef // - Out param pointers