summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ref5.C
blob: ad1c30c36f8624ce54c90f7e52f17f387916d26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct A { };
struct B : public A { };
struct X {
        operator B();
};
X x;

int main()
{
  const A& r = x;
  return 0;
}