diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/parse14.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/parse14.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/parse14.C b/gcc/testsuite/g++.old-deja/g++.jason/parse14.C new file mode 100644 index 00000000000..20fcc47dbf8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/parse14.C @@ -0,0 +1,12 @@ +// Bug: g++ decides that A::foo is introducing a constructor declarator. +// Build don't link: + +struct A { + typedef bool foo; +}; + +A::foo (*bar) (); + +struct B { + A::foo (*bar) (); +}; |