Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test: Don't generate bindings for deleted functions #427

Merged
merged 2 commits into from
Apr 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions engine/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4939,6 +4939,37 @@ fn test_include_cpp_in_path() {
}

#[test]
#[ignore] // https://github.com/google/autocxx/issues/426
fn test_deleted_function() {
// We shouldn't generate bindings for deleted functions.
// The test is successful if the bindings compile, i.e. if autocxx doesn't
// attempt to call the deleted function.
let hdr = indoc! {"
class A {
public:
void foo() = delete;
};
"};
let rs = quote! {};
run_test("", hdr, rs, &["A"], &[]);
}

#[test]
#[ignore] // https://github.com/google/autocxx/issues/426
fn test_implicitly_deleted_copy_constructor() {
// We shouldn't generate bindings for implicitly deleted functions.
// The test is successful if the bindings compile, i.e. if autocxx doesn't
// attempt to call the implicitly deleted copy constructor.
let hdr = indoc! {"
class A {
public:
A(A&&);
};
"};
let rs = quote! {};
run_test("", hdr, rs, &["A"], &[]);
}

#[ignore] // https://github.com/google/autocxx/issues/428
fn test_overloaded_ignored_function() {
// When overloaded functions are ignored during import, the placeholder
Expand Down