Sign in
gnu
/
gcc
/
refs/heads/devel/gccgo
/
.
/
libstdc++-v3
/
testsuite
/
std
/
ranges
/
subrange
/
1.cc
blob: 8a53261c78c18007167f07ea3bee368deb931871 [
file
] [
log
] [
blame
]
// { dg-options "-std=gnu++20" }
// { dg-do run { target c++20 } }
#include
<ranges>
void
test01
()
{
// LWG 3470
int
a
[
3
]
=
{
1
,
2
,
3
};
int
*
b
[
3
]
=
{&
a
[
2
],
&
a
[
0
],
&
a
[
1
]};
auto
c
=
std
::
ranges
::
subrange
<
const
int
*
const
*>(
b
);
}
int
main
()
{
test01
();
}