about summary refs log tree commit diff
path: root/tests/codegen/cffi
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-08-29 18:12:31 +0800
committerDianQK <dianqk@dianqk.net>2024-08-29 18:12:31 +0800
commit9589eb95d2872337e932c8b5dc26bdb5cb3dc15b (patch)
treee711a79c37a3af29fc2f9479b788dfe57f6321a9 /tests/codegen/cffi
parentc9bd03cb724e13cca96ad320733046cbdb16fbbe (diff)
downloadrust-9589eb95d2872337e932c8b5dc26bdb5cb3dc15b.tar.gz
rust-9589eb95d2872337e932c8b5dc26bdb5cb3dc15b.zip
Add `-Zlint-llvm-ir`
Diffstat (limited to 'tests/codegen/cffi')
-rw-r--r--tests/codegen/cffi/ffi-out-of-bounds-loads.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/codegen/cffi/ffi-out-of-bounds-loads.rs b/tests/codegen/cffi/ffi-out-of-bounds-loads.rs
index a4b7c0caa6d..ae8d8383f5b 100644
--- a/tests/codegen/cffi/ffi-out-of-bounds-loads.rs
+++ b/tests/codegen/cffi/ffi-out-of-bounds-loads.rs
@@ -1,5 +1,6 @@
 //@ revisions: linux apple
-//@ compile-flags: -C opt-level=0 -C no-prepopulate-passes -C passes=lint
+//@ min-llvm-version: 19
+//@ compile-flags: -Copt-level=0 -Cno-prepopulate-passes -Zlint-llvm-ir -Cllvm-args=-lint-abort-on-error
 
 //@[linux] compile-flags: --target x86_64-unknown-linux-gnu
 //@[linux] needs-llvm-components: x86