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

Issue #1316 - Added failing test #1317

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
22 changes: 22 additions & 0 deletions integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2960,6 +2960,28 @@ fn test_conflicting_up_wrapper_methods_in_ns() {
run_test(cxx, hdr, rs, &["A::Bob", "B::Fred"], &[]);
}

#[test]
fn test_conflicting_overload_rename() {
let cxx = indoc! {
""
};
let hdr = indoc! {"
#include <stdlib.h>
#include <stdint.h>
class DataBuf;
class Image {
public:
static uint64_t byteSwap(uint64_t value, bool bSwap);
static uint32_t byteSwap(uint32_t value, bool bSwap);
static uint16_t byteSwap(uint16_t value, bool bSwap);
static uint16_t byteSwap2(const DataBuf& buf, size_t offset, bool bSwap);
};
"};
let rs = quote! {
};
run_test(cxx, hdr, rs, &["Image"], &[]);
}

#[test]
fn test_ns_struct_pod_request() {
let hdr = indoc! {"
Expand Down