summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/typedef.C
blob: fac78cebeaf0f52875848201ea60a032fbee04ad (plain)
1
2
3
4
5
6
7
8
9
// PRMS Id: 4687
// Bug: g++ misinterprets typedefs of function type in class scope.
// Build don't link:

struct A {
   typedef int F();
   F *fp;
   void* g() { return fp; }	// gets bogus error - typing
};