Debian Codegraph @

gcc/testsuite/g++.dg/modules/noexcept-4_b.C

raw
1 // { dg-additional-options "-fmodules -std=c++20" }
2
3 struct exception_ptr {
4 friend bool operator==(const exception_ptr&, const exception_ptr&) = default;
5 };
6
7 void enqueue() {
8 exception_ptr e;
9 e == e;
10 }
11
12 import "noexcept-4_a.H";
13
14 int main() {
15 constexpr exception_ptr e;
16 static_assert(e == e);
17 static_assert(noexcept(e == e));
18 }