diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.gb/scope04.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.gb/scope04.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.gb/scope04.C b/gcc/testsuite/g++.old-deja/g++.gb/scope04.C new file mode 100644 index 000000000..29e0dffea --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.gb/scope04.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// GROUPS passed gb scope +struct a { + struct c { + struct d { + static int foo (int); + }; + }; + + struct b { + int foo (int x) { return c::d::foo (x); } + }; +}; + +int a::c::d::foo (int) { return 0; } |