2025-08-15 14:16:32 +08:00
|
|
|
// Test for #111528, the ice issue cause waiting on a query that panicked
|
|
|
|
|
//
|
2024-02-07 15:26:57 +08:00
|
|
|
//@ compile-flags: -Z threads=16
|
|
|
|
|
//@ build-fail
|
2025-08-15 14:16:32 +08:00
|
|
|
//@ compare-output-by-lines
|
2024-02-07 15:26:57 +08:00
|
|
|
|
2025-08-15 14:16:32 +08:00
|
|
|
#![crate_type = "rlib"]
|
2024-02-07 15:26:57 +08:00
|
|
|
#![allow(warnings)]
|
|
|
|
|
|
2025-08-15 14:16:32 +08:00
|
|
|
#[export_name = "fail"]
|
|
|
|
|
pub fn a() {}
|
2024-02-07 15:26:57 +08:00
|
|
|
|
2025-08-15 14:16:32 +08:00
|
|
|
#[export_name = "fail"]
|
2024-02-07 15:26:57 +08:00
|
|
|
pub fn b() {
|
2025-08-15 14:16:32 +08:00
|
|
|
//~^ ERROR symbol `fail` is already defined
|
2024-02-07 15:26:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|