diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/nested1.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.other/nested1.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/nested1.C b/gcc/testsuite/g++.old-deja/g++.other/nested1.C new file mode 100755 index 0000000..0c03856 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/nested1.C @@ -0,0 +1,19 @@ +// Build don't link: + +struct C +{ + struct D + { + }; +}; + +struct E +{ + C& c; + void g(); +}; + +void E::g() +{ + c.D().f(); // ERROR - no matching function +} |