diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 853e17b1b..3b81a6c52 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -12386,6 +12386,32 @@ fn test_cpp_union_pod() { run_test_expect_fail("", hdr, quote! {}, &[], &["CorrelationId_t_"]); } +#[test] +fn test_using_string_function() { + let hdr = indoc! {" + #include + using std::string; + void foo(const string &a); + "}; + let rs = quote! {}; + run_test("", hdr, rs, &["foo"], &[]); +} + +#[test] +fn test_using_string_method() { + let hdr = indoc! {" + #include + using std::string; + class Foo + { + public: + Foo bar(const string &a); + }; + "}; + let rs = quote! {}; + run_test("", hdr, rs, &["Foo"], &[]); +} + #[test] #[ignore] // https://github.com/google/autocxx/issues/1382 fn test_override_typedef_fn() {