2 // { dg-options "-std=c++0x" }
4 // Test user-defined literals.
5 // Test template operator declaration and definition.
10 int operator"" _abc();
19 operator"" _abc<'L','U','E'>()
24 operator"" _abc<'6','6','6'>()
30 int i = operator"" _abc<'1','2','3'>();
32 int universal_meaning = operator"" _abc<'L','U','E'>();
33 assert(universal_meaning == 42);
34 int b = operator"" _abc<'6','6','6'>();
35 int z = operator"" _abc<>();
49 template<char... Chars>
51 { return 42 + sizeof...(Chars); }