We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19ee98f commit bf2c5d3Copy full SHA for bf2c5d3
src/test/codegen/ffi-returns-twice.rs
@@ -2,14 +2,10 @@
2
#![crate_type = "lib"]
3
#![feature(ffi_returns_twice)]
4
5
-extern {
6
- // CHECK-LABEL: @foo()
7
- // CHECK: attributes #1 = { {{.*}}returns_twice{{.*}} }
8
- #[no_mangle]
9
- #[ffi_returns_twice]
10
- pub fn foo();
11
-}
+pub fn bar() { unsafe { foo() } }
12
13
-pub fn bar() {
14
- unsafe { foo() }
+extern {
+ #[ffi_returns_twice] pub fn foo();
15
}
+// CHECK: declare void @foo(){{.*}}#1{{.*}}
+// CHECK: attributes #1 = { {{.*}}returns_twice{{.*}} }
0 commit comments