diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/friend2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/friend2.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend2.C b/gcc/testsuite/g++.old-deja/g++.other/friend2.C new file mode 100644 index 000000000..3f5f2a7de --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/friend2.C @@ -0,0 +1,19 @@ +// { dg-do assemble } + +void +f() +{ + class Local_2 { + friend class Friend; + + int i; + }; + + class Friend { + public: + void g() { + Local_2 l2; + l2.i = 3; + } + }; +} |