blob: d6b44d9c0f060fe4ee6c64d5270cd3ffd6015232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do compile { target c++1y } }
template<typename CharT, CharT... String>
int
operator"" _script()
{ return 42; }
int i = "hi!"_script;
int i8 = u8"hi!"_script;
int iw = L"hi!"_script;
int i16 = u"hi!"_script;
int i32 = U"hi!"_script;
|