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