Skip to content

Commit

Permalink
Merge pull request #538 from google/test-506
Browse files Browse the repository at this point in the history
Add test for issue 506.
  • Loading branch information
adetaylor authored May 28, 2021
2 parents 9c1a3fa + 4925e49 commit 4664f88
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions engine/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4963,6 +4963,31 @@ fn test_type_called_type() {
run_test("", hdr, rs, &["take_type"], &[]);
}

#[test]
fn test_issue_506() {
let hdr = indoc! {"
namespace std {
template <class, class> class am;
typedef am<char, char> an;
} // namespace std
namespace be {
class bf {
virtual std::an bg() = 0;
};
class bh : bf {};
} // namespace be
namespace spanner {
class Database;
class Row {
public:
Row(be::bh *);
};
} // namespace spanner
"};
let rs = quote! {};
run_test("", hdr, rs, &["spanner::Database", "spanner::Row"], &[]);
}

fn find_ffi_items(f: syn::File) -> Result<Vec<Item>, TestError> {
Ok(f.items
.into_iter()
Expand Down

0 comments on commit 4664f88

Please sign in to comment.