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:
Nikita Popov 2024-11-28 10:12:01 +01:00 committed by Nikita Popov
parent d3ad000943
commit fc9f727c7c
3 changed files with 2 additions and 10 deletions

View file

@ -1,9 +0,0 @@
//@ known-bug: #109681
#![crate_type="lib"]
#![feature(linkage)]
#[linkage = "common"]
pub static TEST3: bool = true;
fn main() {}

View file

@ -1,4 +1,4 @@
//@ compile-flags: -g -Copt-level=0
//@ compile-flags: -g -Copt-level=0 -Z verify-llvm-ir
//@ known-bug: #34127
//@ only-x86_64

View file

@ -2,6 +2,7 @@
//@ failure-status: 101
//@ known-bug: #109681
//@ 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
// initializers, since it generates invalid LLVM IR.