PR modula2/115112 Incorrect line debugging information occurs during INC builtin
[gcc.git] / libstdc++-v3 / testsuite / 23_containers / array / comparison_operators / 106212.cc
blobf7b12bd04efd86c8c1d6a1114e2955cab5f1fa8a
1 // { dg-options "-D_GLIBCXX_DEBUG" }
2 // { dg-do compile { target c++20 } }
4 // Bug libstdc++/106212 - Code becomes non-constexpr with _GLIBCXX_DEBUG
6 #include <array>
8 struct A
10 constexpr A(int i) : e{i} {}
11 constexpr bool operator==(const A& a) const = default;
12 std::array<int, 1> e;
15 static_assert(A{1} != A{2}, "");