#![crate_type = "lib"]
#![feature(ffi_returns_twice)]
-extern {
- // CHECK-LABEL: @foo()
- // CHECK: attributes #1 = { {{.*}}returns_twice{{.*}} }
- #[no_mangle]
- #[ffi_returns_twice]
- pub fn foo();
-}
+pub fn bar() { unsafe { foo() } }
-pub fn bar() {
- unsafe { foo() }
+extern {
+ // CHECK-LABEL: declare void @foo()
+ // CHECK-SAME: [[ATTRS:#[0-9]+]]
+ // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}returns_twice{{.*}} }
+ #[ffi_returns_twice] pub fn foo();
}