2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / udlit-tmpl-parms-neg.C
blobf681ecfbcc1f62772a239327d31dfc4567517155
1 // { dg-do compile { target c++11 } }
3 class Foo { };
5 template<wchar_t...>
6   Foo operator"" _Foo(); // { dg-error "literal operator template|has invalid parameter list" }
8 template<char>
9   Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" }
11 template<typename... Type>
12   Foo operator"" _Bar(); // { dg-error "literal operator template|has invalid parameter list" }