summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor5.C
blob: 36b01785feec62256da9fe1476c2619e11e839c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// PR c++/46877
// { dg-options -std=c++0x }

struct new_allocator
{
  constexpr new_allocator ();
};

struct string
{
  constexpr string ()
  {
  }
  new_allocator a;
};

struct pair
{
  const string first;
  constexpr pair ()
  {
  }
};

constexpr
new_allocator::new_allocator ()
{
}

pair p;