Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-sassert.C
blob3e08fb0efa3689c28d51c9babc248e6b20e9cf42
1 // Allow static_assert in constexpr constructors, too.
2 // { dg-options -std=c++0x }
4 template<typename T>
5 struct A
7   int i;
9   constexpr A(int i) : i(i)
10   {
11     static_assert(sizeof(T) == 1, "");
12   }