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 00000000000..fc254511cfe --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg3.C @@ -0,0 +1,15 @@ +// Bug: g++ remembers the members of OUTER and complains about the second +// definition. +// Build don't link: + +void +test () +{ + { + struct OUTER { struct INNER { int mbr; } member; }; + } + + { + struct OUTER { struct INNER { int mbr; } member; }; + } +} |