summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-parms-neg.C
blob: 4dab4d2f6f097c6eca9301f9316a16471621317b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options -std=c++0x }

class Foo { };

template<wchar_t...>
  Foo operator"" _Foo(); // { dg-error "literal operator template|has invalid parameter list" }

template<char>
  Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" }

template<typename... Type>
  Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" }