2021-08-10 16:38:14 -05:00
|
|
|
// build-fail
|
2021-10-21 07:57:14 -05:00
|
|
|
// compile-flags: -C symbol-mangling-version=v0 --crate-name=c
|
2021-10-20 15:14:16 -05:00
|
|
|
// normalize-stderr-test: "c\[.*?\]" -> "c[HASH]"
|
2021-08-30 03:59:53 -05:00
|
|
|
#![feature(adt_const_params, rustc_attrs)]
|
2021-08-10 16:38:14 -05:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
pub struct Str<const S: &'static str>;
|
|
|
|
|
|
|
|
#[rustc_symbol_name]
|
2021-10-20 15:14:16 -05:00
|
|
|
//~^ ERROR symbol-name
|
|
|
|
//~| ERROR demangling
|
2021-08-10 16:38:14 -05:00
|
|
|
//~| ERROR demangling-alt(<c::Str<"abc">>)
|
|
|
|
impl Str<"abc"> {}
|
|
|
|
|
|
|
|
#[rustc_symbol_name]
|
2021-10-20 15:14:16 -05:00
|
|
|
//~^ ERROR symbol-name
|
|
|
|
//~| ERROR demangling
|
2021-08-10 16:38:14 -05:00
|
|
|
//~| ERROR demangling-alt(<c::Str<"'">>)
|
|
|
|
impl Str<"'"> {}
|
|
|
|
|
|
|
|
#[rustc_symbol_name]
|
2021-10-20 15:14:16 -05:00
|
|
|
//~^ ERROR symbol-name
|
|
|
|
//~| ERROR demangling
|
2021-08-10 16:38:14 -05:00
|
|
|
//~| ERROR demangling-alt(<c::Str<"\t\n">>)
|
|
|
|
impl Str<"\t\n"> {}
|
|
|
|
|
|
|
|
#[rustc_symbol_name]
|
2021-10-20 15:14:16 -05:00
|
|
|
//~^ ERROR symbol-name
|
|
|
|
//~| ERROR demangling
|
2021-08-10 16:38:14 -05:00
|
|
|
//~| ERROR demangling-alt(<c::Str<"∂ü">>)
|
|
|
|
impl Str<"∂ü"> {}
|
|
|
|
|
|
|
|
#[rustc_symbol_name]
|
2021-10-20 15:14:16 -05:00
|
|
|
//~^ ERROR symbol-name
|
|
|
|
//~| ERROR demangling
|
2021-08-10 16:38:14 -05:00
|
|
|
//~| ERROR demangling-alt(<c::Str<"საჭმელად_გემრიელი_სადილი">>)
|
|
|
|
impl Str<"საჭმელად_გემრიელი_სადილი"> {}
|
|
|
|
|
|
|
|
#[rustc_symbol_name]
|
2021-10-20 15:14:16 -05:00
|
|
|
//~^ ERROR symbol-name
|
|
|
|
//~| ERROR demangling
|
2021-08-10 16:38:14 -05:00
|
|
|
//~| ERROR demangling-alt(<c::Str<"🐊🦈🦆🐮 § 🐶👒☕🔥 § 🧡💛💚💙💜">>)
|
|
|
|
impl Str<"🐊🦈🦆🐮 § 🐶👒☕🔥 § 🧡💛💚💙💜"> {}
|
|
|
|
|
|
|
|
fn main() {}
|