Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / constexpr-sassert.C
blob7f82671b442527194c4cc3da133dd1d7b65841ad
1 // Allow static_assert in constexpr constructors, too.
2 // { dg-do compile { target c++11 } }
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   }