// { dg-do run { target c++14 } } // { dg-options -w } // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } } #include templatestruct enable_if {}; template struct enable_if { typedef _Tp type; }; template typename enable_if::type operator"" _script () { return 5; } template typename enable_if::type operator"" _script () { return 3; } template typename enable_if::type operator"" _script () { return 1; } int main () { assert ("hello!"_script == 5); assert (u8"hi!"_script == 3); assert ("hey!"_script == 1); }