Skip to content

Commit

Permalink
Failing test: Don't generate bindings for deleted functions.
Browse files Browse the repository at this point in the history
See also google#425.
  • Loading branch information
martinboehme committed Apr 27, 2021
1 parent 0c6dcf6 commit 4152901
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions engine/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4938,6 +4938,38 @@ fn test_include_cpp_in_path() {
do_run_test_manual("", hdr, rs, &[], None).unwrap();
}

#[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"], &[]);
}

// Yet to test:
// 6. Ifdef
// 7. Out param pointers
Expand Down

0 comments on commit 4152901

Please sign in to comment.