aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.gb/scope04.C
blob: 29e0dffeaf053063795c453b56c547f7cb054f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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; }