OSDN Git Service

Implement C++11 user-defined literals.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / udlit-tmpl-parms-neg.C
1 // { dg-options -std=c++0x }
2
3 class Foo { };
4
5 template<wchar_t...>
6   Foo operator"" _Foo(); // { dg-error "literal operator template|has invalid parameter list" }
7
8 template<char>
9   Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" }
10
11 template<typename... Type>
12   Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" }