Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
13
tests/codegen/ffi-const.rs
Normal file
13
tests/codegen/ffi-const.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
// compile-flags: -C no-prepopulate-passes
|
||||
#![crate_type = "lib"]
|
||||
#![feature(ffi_const)]
|
||||
|
||||
pub fn bar() { unsafe { foo() } }
|
||||
|
||||
extern "C" {
|
||||
// CHECK-LABEL: declare{{.*}}void @foo()
|
||||
// CHECK-SAME: [[ATTRS:#[0-9]+]]
|
||||
// The attribute changed from `readnone` to `memory(none)` with LLVM 16.0.
|
||||
// CHECK-DAG: attributes [[ATTRS]] = { {{.*}}{{readnone|memory\(none\)}}{{.*}} }
|
||||
#[ffi_const] pub fn foo();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue