2019-12-13 21:28:32 -06:00
|
|
|
// build-fail
|
2019-04-13 11:03:02 -05:00
|
|
|
// revisions: legacy v0
|
|
|
|
//[legacy]compile-flags: -Z symbol-mangling-version=legacy
|
|
|
|
//[v0]compile-flags: -Z symbol-mangling-version=v0
|
|
|
|
|
2016-03-16 14:00:20 -05:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
2019-05-29 15:58:55 -05:00
|
|
|
#[rustc_symbol_name]
|
2019-04-13 11:03:02 -05:00
|
|
|
//[legacy]~^ ERROR symbol-name(_ZN5basic4main
|
|
|
|
//[legacy]~| ERROR demangling(basic::main
|
|
|
|
//[legacy]~| ERROR demangling-alt(basic::main)
|
2021-06-01 09:31:57 -05:00
|
|
|
//[v0]~^^^^ ERROR symbol-name(_RNvCs21hi0yVfW1J_5basic4main)
|
|
|
|
//[v0]~| ERROR demangling(basic[17891616a171812d]::main)
|
2019-04-13 11:03:02 -05:00
|
|
|
//[v0]~| ERROR demangling-alt(basic::main)
|
|
|
|
#[rustc_def_path]
|
|
|
|
//[legacy]~^ ERROR def-path(main)
|
|
|
|
//[v0]~^^ ERROR def-path(main)
|
2016-03-16 14:00:20 -05:00
|
|
|
fn main() {
|
|
|
|
}
|