summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.gb/scope04.C
blob: f63775bdb492dd8e75aaa2ef49dd11a65e11fe4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link: 
// 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; }