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.
This commit is contained in:
parent
d3ad000943
commit
fc9f727c7c
3 changed files with 2 additions and 10 deletions
|
@ -1,9 +0,0 @@
|
||||||
//@ known-bug: #109681
|
|
||||||
|
|
||||||
#![crate_type="lib"]
|
|
||||||
#![feature(linkage)]
|
|
||||||
|
|
||||||
#[linkage = "common"]
|
|
||||||
pub static TEST3: bool = true;
|
|
||||||
|
|
||||||
fn main() {}
|
|
|
@ -1,4 +1,4 @@
|
||||||
//@ compile-flags: -g -Copt-level=0
|
//@ compile-flags: -g -Copt-level=0 -Z verify-llvm-ir
|
||||||
//@ known-bug: #34127
|
//@ known-bug: #34127
|
||||||
//@ only-x86_64
|
//@ only-x86_64
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
//@ failure-status: 101
|
//@ failure-status: 101
|
||||||
//@ known-bug: #109681
|
//@ known-bug: #109681
|
||||||
//@ ignore-wasm32 this appears to SIGABRT on wasm, not fail cleanly
|
//@ ignore-wasm32 this appears to SIGABRT on wasm, not fail cleanly
|
||||||
|
//@ compile-flags: -Z verify-llvm-ir
|
||||||
|
|
||||||
// This test verifies that we continue to hit the LLVM error for common linkage with non-zero
|
// This test verifies that we continue to hit the LLVM error for common linkage with non-zero
|
||||||
// initializers, since it generates invalid LLVM IR.
|
// initializers, since it generates invalid LLVM IR.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue