2019-02-09 15:55:30 +01:00
|
|
|
// compile-flags: -C no-prepopulate-passes
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![feature(ffi_returns_twice)]
|
|
|
|
|
2019-02-10 09:59:07 +01:00
|
|
|
pub fn bar() { unsafe { foo() } }
|
2019-02-09 15:55:30 +01:00
|
|
|
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {
|
2021-03-28 00:11:24 +02:00
|
|
|
// CHECK: declare{{( dso_local)?}} void @foo(){{.*}}[[ATTRS:#[0-9]+]]
|
|
|
|
// CHECK: attributes [[ATTRS]] = { {{.*}}returns_twice{{.*}} }
|
2019-02-10 09:59:07 +01:00
|
|
|
#[ffi_returns_twice] pub fn foo();
|
2019-02-09 15:55:30 +01:00
|
|
|
}
|