Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / overload / operator2.C
blobaba1622442c62f87fd5d3f368af39420ce1fd04f
1 // PR c++/19966
2 // { dg-do compile }
4 struct A
6   static operator int(); // { dg-error "must be a nonstatic" }
7 };
9 struct B
11   static int operator*(); // { dg-error "must be either" }
14 static operator int(); // { dg-error "must be a nonstatic" }