summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/trailing7.C
blob: c4db10ec80d781513bb6e194aabeaf76048f5743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/50365
// { dg-options -std=c++0x }

struct A { int i; };

struct B {
  B();
  A* f();
};

B::B()
{
  int(f()->i);
}