13 lines
310 B
Rust
13 lines
310 B
Rust
![]() |
// compile-flags: -C no-prepopulate-passes
|
||
|
#![crate_type = "lib"]
|
||
|
#![feature(ffi_const)]
|
||
|
|
||
|
pub fn bar() { unsafe { foo() } }
|
||
|
|
||
|
extern {
|
||
|
// CHECK-LABEL: declare void @foo()
|
||
|
// CHECK-SAME: [[ATTRS:#[0-9]+]]
|
||
|
// CHECK-DAG: attributes [[ATTRS]] = { {{.*}}readnone{{.*}} }
|
||
|
#[ffi_const] pub fn foo();
|
||
|
}
|