1 // { dg-do run { target c++11 } }
2 // { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } }
4 // Test user-defined literals.
5 // Test simple operator declaration and definition in namespaces.
12 long double operator ""_LL(long double);
18 operator ""_SS(long double x)
19 { return std::fmod(x, static_cast<long double>(std::numeric_limits<short>::max())); }
25 long double x = Long::operator ""_LL(1.2L);
27 using namespace Short;
28 short s = operator ""_SS(1.2L);
41 operator ""_LL(long double x)