Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-sassert.C
blob: 7f82671b442527194c4cc3da133dd1d7b65841ad [
file
] [
log
] [
blame
]
// 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
,
""
);
}
};