]> git.lizzy.rs Git - rust.git/blob - tests/codegen/issue-32364.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / 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 }