]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp1y/udlit-char-template.C
Implement UDL changes from P0732R2.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp1y / udlit-char-template.C
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;