1 // { dg-do run { target c++14 } }
5 template<bool, typename _Tp = void>struct enable_if {};
6 template<typename _Tp> struct enable_if<true, _Tp> { typedef _Tp type; };
9 template<typename CharT, CharT... String>
10 typename enable_if<sizeof...(String) == 6, int>::type operator"" _script () {
14 template<typename CharT, CharT... String>
15 typename enable_if<sizeof...(String) == 3, int>::type operator"" _script () {
19 template<typename CharT, CharT... String>
20 typename enable_if<sizeof...(String) != 3 && sizeof...(String) != 6, int>::type operator"" _script () {
26 assert ("hello!"_script == 5);
27 assert (u8"hi!"_script == 3);
28 assert ("hey!"_script == 1);