diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/lookup23.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/lookup23.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup23.C b/gcc/testsuite/g++.old-deja/g++.other/lookup23.C new file mode 100644 index 000000000..64cb9de49 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup23.C @@ -0,0 +1,13 @@ +// { dg-do assemble } +// Test for proper handling of type lookup if base class has field with the +// same name as the containing class. + +struct a { int a; }; +struct b : a {}; + +b x; + +void foo () +{ + x.a = 22; +} |