]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/issue-32364.rs
Auto merge of #69986 - JohnTitor:rollup-h0809mf, r=JohnTitor
[rust.git] / src / test / codegen / issue-32364.rs
1 // Test that `extern "stdcall"` is properly translated.
2
3 // only-x86
4
5 // compile-flags: -C no-prepopulate-passes
6
7 struct Foo;
8
9 impl Foo {
10 // CHECK: define internal x86_stdcallcc void @{{.*}}foo{{.*}}()
11     #[inline(never)]
12     pub extern "stdcall" fn foo<T>() {
13     }
14 }
15
16 fn main() {
17     Foo::foo::<Foo>();
18 }