☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
udlit-char-template.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/udlit-char-template.C
code
plain
raw
1
// { dg-do compile { target c++14 } }
2
// { dg-options -w }
3
4
template<typename CharT, CharT... String>
5
int
6
operator"" _script()
7
{ return 42; }
8
9
int i = "hi!"_script;
10
int i8 = u8"hi!"_script;
11
int iw = L"hi!"_script;
12
int i16 = u"hi!"_script;
13
int i32 = U"hi!"_script;