Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if10.C
blob: 84d7b20b10a18349a5245ea88f095c19e507ba73 [
file
] [
log
] [
blame
]
// PR c++/78948
// { dg-do compile { target c++17 } }
template
<
int
T
>
void
sizeof_mismatch
()
{
static_assert
(
T
==
0
,
"sizeof mismatch"
);
}
int
main
()
{
if
constexpr
(
sizeof
(
int
*)
==
sizeof
(
char
*))
;
else
sizeof_mismatch
<
sizeof
(
int
*)>();
}