aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-defer2.C
blob: 96ed2c8acfec8610b535c63cedb0528f88dc8cc5 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile { target c++11 } }

struct A
{
  int i = f();
  static int f(int i = 42) { return i; }
};

A a;