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

struct S
{
  int i:1;
};

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

T t;