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

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

struct B
{
  A<int> a;
};

B b;