aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/trailing7.C
blob: b3397ea3b46fc91f399eddd10e451b9a9c0889b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/50365
// { dg-do compile { target c++11 } }

struct A { int i; };

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

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