about summary refs log tree commit diff
path: root/tests/codegen/issues/issue-47278.rs
blob: 4f0a5bdf36f4266c12a1cb6e548316c495a43ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
// -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 {}
}