PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr34938-2.C
blobfe7650fd62499693cf067f3d21c5af82e7769516
1 // PR c++/34938
3 template <class T> struct A { };
4 struct B { };
6 A<void()const>* p1 = 42;           // { dg-error "void\\(\\) const" }
7 A<void(B::*)()const>* p2 = 42;     // { dg-error "void \\(B::\\*\\)\\(\\) const" }
9 A<void()volatile>* p3 = 42;        // { dg-error "void\\(\\) volatile" }
10 A<void(B::*)()volatile>* p4 = 42;  // { dg-error "void \\(B::\\*\\)\\(\\) volatile" }