summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/issue-47278.rs
blob: 9076274f45e94e19393c2ea424b88c5afa8d9bc2 (plain)
1
2
3
4
5
6
7
8
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 {} }