1 // { dg-do compile { target c++20 } }
4 #include <testsuite_hooks.h>
10 VERIFY( v
.data() == nullptr );
12 VERIFY( v
.data() != nullptr );
13 const std::vector
<int> v2
{1,3,5,9};
14 VERIFY( v
.data() != v2
.data() );
15 VERIFY( v2
.data()[2] == 5 );
18 VERIFY( v
.data() != v2
.data() );
19 VERIFY( v
.data()[1] == 3 );
24 static_assert(test_data());