From a27f3e3fd1e4d16160f8885b6b06665b5319f56c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 21 Jul 2025 14:34:12 +0200 Subject: Rename `tests/codegen` into `tests/codegen-llvm` --- tests/codegen-llvm/issues/issue-32364.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/codegen-llvm/issues/issue-32364.rs (limited to 'tests/codegen-llvm/issues/issue-32364.rs') diff --git a/tests/codegen-llvm/issues/issue-32364.rs b/tests/codegen-llvm/issues/issue-32364.rs new file mode 100644 index 00000000000..016981d1947 --- /dev/null +++ b/tests/codegen-llvm/issues/issue-32364.rs @@ -0,0 +1,17 @@ +// 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() {} +} + +fn main() { + Foo::foo::(); +} -- cgit 1.4.1-3-g733a5