summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ref6.C
blob: 50a9636036667b7474b1d0ebaf08e38c4997426f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct B {
  void g() { }
};

struct A {
  void f() {
    B &b = b;
    b.g();
  }
};

int main(void) { }