From 7ee27c444422d1cca9b036c5abd7220aa2003188 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 430edf322..b42d7e1a1 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -11541,6 +11541,22 @@ fn test_issue_1125() { ); } +#[test] +#[ignore] // /~https://github.com/google/autocxx/issues/1141 +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