rust/src/test/codegen/issue-32364.rs
2018-12-25 21:08:33 -07:00

19 lines
308 B
Rust

// Test that `extern "stdcall"` is properly translated.
// only-x86
// compile-flags: -C no-prepopulate-passes
struct Foo;
impl Foo {
// CHECK: define internal x86_stdcallcc void @{{.*}}foo{{.*}}()
#[inline(never)]
pub extern "stdcall" fn foo<T>() {
}
}
fn main() {
Foo::foo::<Foo>();
}