2019-12-14 03:28:32 +00:00
|
|
|
//@ build-fail
|
2019-04-13 16:03:02 +00:00
|
|
|
//@ revisions: legacy v0
|
2021-10-21 12:57:14 +00:00
|
|
|
//@[legacy]compile-flags: -Z unstable-options -C symbol-mangling-version=legacy
|
|
|
|
//@[v0]compile-flags: -C symbol-mangling-version=v0
|
2019-04-13 16:03:02 +00:00
|
|
|
|
2016-03-16 19:00:20 +00:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
2019-05-29 20:58:55 +00:00
|
|
|
#[rustc_symbol_name]
|
2019-04-13 16:03:02 +00:00
|
|
|
//[legacy]~^ ERROR symbol-name(_ZN5basic4main
|
|
|
|
//[legacy]~| ERROR demangling(basic::main
|
|
|
|
//[legacy]~| ERROR demangling-alt(basic::main)
|
2021-10-20 20:14:16 +00:00
|
|
|
//[v0]~^^^^ ERROR symbol-name(_RNv
|
|
|
|
//[v0]~| ERROR demangling(basic[
|
2019-04-13 16:03:02 +00:00
|
|
|
//[v0]~| ERROR demangling-alt(basic::main)
|
|
|
|
#[rustc_def_path]
|
|
|
|
//[legacy]~^ ERROR def-path(main)
|
|
|
|
//[v0]~^^ ERROR def-path(main)
|
2016-03-16 19:00:20 +00:00
|
|
|
fn main() {
|
|
|
|
}
|