blob: 7f82671b442527194c4cc3da133dd1d7b65841ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Allow static_assert in constexpr constructors, too.
// { dg-do compile { target c++11 } }
template<typename T>
struct A
{
int i;
constexpr A(int i) : i(i)
{
static_assert(sizeof(T) == 1, "");
}
};
|