diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/typedef.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/typedef.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/typedef.C b/gcc/testsuite/g++.old-deja/g++.jason/typedef.C new file mode 100644 index 00000000000..fac78cebeaf --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/typedef.C @@ -0,0 +1,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 +}; |