Skip to content

Commit

Permalink
Add integration test for using declarations for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
calebfletcher committed Dec 30, 2024
1 parent b61f435 commit 13216ef
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <string>
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 <string>
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() {
Expand Down

0 comments on commit 13216ef

Please sign in to comment.