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

template<class T> struct A {
  T t;
  constexpr A(){}
};

struct B
{
  A<int> a;
};

B b;