about summary refs log tree commit diff
path: root/tests/run-make/symbols-include-type-name/rmake.rs
blob: 3b46050e6620e9965a95b32e41ba2e52b86be947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ needs-target-std
//
// Method names used to be obfuscated when exported into symbols,
// leaving only an obscure `<impl>`. After the fix in #30328,
// this test checks that method names are successfully saved in the symbol list.
// See https://github.com/rust-lang/rust/issues/30260

use run_make_support::{invalid_utf8_contains, rustc};

fn main() {
    rustc().crate_type("staticlib").emit("asm").input("lib.rs").run();
    // Check that symbol names for methods include type names, instead of <impl>.
    invalid_utf8_contains("lib.s", "Def");
}