Skip to content

Commit fc9f727

Browse files
nikicNikita Popov
authored and
Nikita Popov
committed
Fix tests that rely on LLVM IR verification
Pass -Z verify-llvm-ir to tests that rely on it, to make sure they pass regardless of the value of verify-llvm-ir in config.toml. Also remove the 109681.rs test, because it is a duplicat of common-linkage-non-zero-init.rs.
1 parent d3ad000 commit fc9f727

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

tests/crashes/109681.rs

-9
This file was deleted.

tests/crashes/34127.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ compile-flags: -g -Copt-level=0
1+
//@ compile-flags: -g -Copt-level=0 -Z verify-llvm-ir
22
//@ known-bug: #34127
33
//@ only-x86_64
44

tests/ui/linkage-attr/common-linkage-non-zero-init.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//@ failure-status: 101
33
//@ known-bug: #109681
44
//@ ignore-wasm32 this appears to SIGABRT on wasm, not fail cleanly
5+
//@ compile-flags: -Z verify-llvm-ir
56

67
// This test verifies that we continue to hit the LLVM error for common linkage with non-zero
78
// initializers, since it generates invalid LLVM IR.

0 commit comments

Comments
 (0)