2018-09-25 15:37:31 -05:00
|
|
|
// Test that `extern "stdcall"` is properly translated.
|
|
|
|
|
|
|
|
// only-x86
|
2016-10-25 12:56:36 -05:00
|
|
|
|
2016-06-12 13:59:49 -05:00
|
|
|
// 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>();
|
|
|
|
}
|