Skip to content

fns using c-stack-cdecl native ABI cannot be used as values #1058

Closed

Description

@nikomatsakis

this test (src/test/run-pass/c-stack-as-value.rs) yields a LLVM compilation error:

// xfail-test

native "c-stack-cdecl" mod rustrt {
    fn unsupervise();
}

fn main() {
    let _foo = rustrt::unsupervise;
}

Activity

  1. nikomatsakis commented on Nov 19, 2011

    @nikomatsakis
    ContributorAuthor

    Fixed in @b6af844

  2. added a commit that references this issue on Oct 26, 2020
  3. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions