Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-placeholder8.C
blob: e78659203ba41034ea9b894376ea6af14f95fc29 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
template
<
class
T
>
concept
is_const
=
__is_same
(
T
,
const
T
);
void
f
()
{
int
x
[]
=
{
1
,
2
};
const
int
y
[]
=
{
3
};
const
is_const
auto
[
a
,
b
]
=
x
;
// { dg-error "constraints" }
const
is_const
auto
[
c
]
=
y
;
}