mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-15 23:06:39 +00:00
19 lines
310 B
Rust
19 lines
310 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>();
|
|
}
|