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

Static functions don't work #125

Closed
adetaylor opened this issue Nov 24, 2020 · 1 comment
Closed

Static functions don't work #125

adetaylor opened this issue Nov 24, 2020 · 1 comment

Comments

@adetaylor
Copy link
Collaborator

#[test]
fn test_static_function() {
    let cxx = indoc! {"
        Bob Bob::create() { Bob a; return a; }
    "};
    let hdr = indoc! {"
        #include <cstdint>
        struct Bob {
            uint32_t a;
            static Bob create();
        };
    "};
    let rs = quote! {
        ffi::Bob::create();
    };
    run_test(cxx, hdr, rs, &[], &["Bob"]);
}

We are not turning create into an associated function as we should.

@adetaylor
Copy link
Collaborator Author

Duplicate of #89, silly me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant