Debian Codegraph @

libstdc++-v3/testsuite/std/ranges/subrange/1.cc

raw
1 // { dg-do run { target c++20 } }
2
3 #include <ranges>
4
5 void
6 test01()
7 {
8 // LWG 3470
9 int a[3] = {1,2,3};
10 int* b[3] = {&a[2], &a[0], &a[1]};
11 auto c = std::ranges::subrange<const int*const*>(b);
12 }
13
14 int
15 main()
16 {
17 test01();
18 }