rust/tests/codegen/issues/issue-32364.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
309 B
Rust
Raw Permalink Normal View History

// Test that `extern "stdcall"` is properly translated.
//@ only-x86
2016-10-25 17:56:36 +00:00
2016-06-12 18:59:49 +00:00
//@ compile-flags: -C no-prepopulate-passes
struct Foo;
impl Foo {
// CHECK: define internal x86_stdcallcc void @{{.*}}foo{{.*}}()
2016-06-12 18:59:49 +00:00
#[inline(never)]
pub extern "stdcall" fn foo<T>() {}
2016-06-12 18:59:49 +00:00
}
fn main() {
Foo::foo::<Foo>();
}