summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/ffi-pure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/ffi-pure.rs')
-rw-r--r--src/test/codegen/ffi-pure.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/codegen/ffi-pure.rs b/src/test/codegen/ffi-pure.rs
index 5bdb2ee91..2ed735813 100644
--- a/src/test/codegen/ffi-pure.rs
+++ b/src/test/codegen/ffi-pure.rs
@@ -7,6 +7,7 @@ pub fn bar() { unsafe { foo() } }
extern "C" {
// CHECK-LABEL: declare{{.*}}void @foo()
// CHECK-SAME: [[ATTRS:#[0-9]+]]
- // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}readonly{{.*}} }
+ // The attribute changed from `readonly` to `memory(read)` with LLVM 16.0.
+ // CHECK-DAG: attributes [[ATTRS]] = { {{.*}}{{readonly|memory\(read\)}}{{.*}} }
#[ffi_pure] pub fn foo();
}