summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/issue-47278.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/issue-47278.rs')
-rw-r--r--src/test/codegen/issue-47278.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/codegen/issue-47278.rs b/src/test/codegen/issue-47278.rs
new file mode 100644
index 000000000..9076274f4
--- /dev/null
+++ b/src/test/codegen/issue-47278.rs
@@ -0,0 +1,9 @@
+// -C no-prepopulate-passes
+#![crate_type="staticlib"]
+
+#[repr(C)]
+pub struct Foo(u64);
+
+// CHECK: define {{.*}} @foo(
+#[no_mangle]
+pub extern "C" fn foo(_: Foo) -> Foo { loop {} }