diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg3.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg3.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg3.C new file mode 100644 index 000000000..93f74685c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg3.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// Bug: g++ remembers the members of OUTER and complains about the second +// definition. + +void +test () +{ + { + struct OUTER { struct INNER { int mbr; } member; }; + } + + { + struct OUTER { struct INNER { int mbr; } member; }; + } +} |