// { dg-do run { target c++11 } } // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } } #include template struct enable_if { }; template struct enable_if { typedef _Tp type; }; template constexpr typename enable_if::type operator""_t () { return 2; } template constexpr typename enable_if::type operator""_t () { return 1; } template constexpr typename enable_if= 3, int>::type operator""_t () { return 100; } int operator""_t (long double) { return 200; } int main () { assert (45_t == 2); assert (4_t == 1); assert (100000_t == 100); assert (200.0_t == 200); }