Debian Codegraph @

libstdc++-v3/testsuite/23_containers/span/cons_1_assert_neg.cc

raw
1 // { dg-do run { target c++20 xfail *-*-* } }
2 // { dg-add-options no_pch }
3
4 #undef _GLIBCXX_DEBUG
5 #define _GLIBCXX_DEBUG
6 #include <span>
7 #include <vector>
8
9 int main()
10 {
11 std::vector<int> v(2);
12 std::span<int, std::dynamic_extent> s(v.begin(), 3);
13 }