Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / other / anon-union5.C
blob616dea87e88d41db1d806875d706f2e9fa190134
1 // PR c++/97974
3 struct A {
4   union {
5     operator int ();            // { dg-error "anonymous union" }
6     int a;
7   };
8   operator int;                 // { dg-error "" }
9 };