summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-template2.C
blob: 6786d1651e571deaf9fc7e6ae541d65ea60fbea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options -std=c++0x }

template <class T> struct A
{
  T t;
  constexpr A() { }		// { dg-error "uninitialized" }
};

int main()
{
  constexpr A<int> a;		// { dg-error "A()" }
}