add test for symbol mangling issue

This commit is contained in:
Jana Dönszelmann 2025-12-08 11:47:25 +01:00
parent 52e0bfccb0
commit 13de732df5
No known key found for this signature in database
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
//@ run-pass
//@ check-run-results
//@ ignore-backends: gcc
#![feature(extern_item_impls)]
pub mod a {
#[eii(foo)]
pub fn foo();
}
pub mod b {
#[eii(foo)]
pub fn foo();
}
#[a::foo]
fn a_foo_impl() {
println!("foo1");
}
#[b::foo]
fn b_foo_impl() {
println!("foo2");
}
fn main() {
a::foo();
b::foo();
}

View file

@ -0,0 +1,2 @@
foo1
foo1