]>
git.proxmox.com Git - rustc.git/blob - src/test/codegen/ffi-returns-twice.rs
1 // compile-flags: -C no-prepopulate-passes
3 #![feature(ffi_returns_twice)]
5 pub fn bar() { unsafe { foo() }
}
8 // CHECK-LABEL: declare void @foo()
9 // CHECK-SAME: [[ATTRS:#[0-9]+]]
10 // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}returns_twice{{.*}} }
11 #[ffi_returns_twice] pub fn foo();