[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / init / ptrfn3.C
blob960085063cf1b493d690386d4322548e22721848
1 // { dg-options "" }
2 // { dg-do compile }
3 // C++/30221
4 // We would ICE while trying to reshape the pointer to
5 // member function element which is not needed.
8 class abstract {};
9 typedef void (abstract::*fptr1) (short & s ) const;
10 struct s {fptr1 f;};
11 s array[] =
13  (fptr1)0