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

struct S
{
  int i:1;
};

struct T
{
  const S s;
  constexpr T (S a = S ()) : s (a) { }
};

T t;