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