1 // compile-flags: -C no-prepopulate-passes
5 pub fn bar() { unsafe { foo() } }
8 // CHECK-LABEL: declare{{.*}}void @foo()
9 // CHECK-SAME: [[ATTRS:#[0-9]+]]
10 // The attribute changed from `readonly` to `memory(read)` with LLVM 16.0.
11 // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}{{readonly|memory\(read\)}}{{.*}} }
12 #[ffi_pure] pub fn foo();