blob: 50006e3f2181e4d93cdfbc898bc9096bea52a4cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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>();
}
|