xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/typedef.C (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 // PRMS Id: 4687
2 // Bug: g++ misinterprets typedefs of function type in class scope.
3 // Build don't link:
4 
5 typedef int (*F1) ();
6 struct A {
7    typedef int F();
8    F *fp;
gA9    F1 g() { return fp; }	// gets bogus error - typing
10 };
11