Debian Codegraph @

gcc/testsuite/g++.dg/modules/noexcept-3_a.C

raw
1 // PR c++/119462
2 // { dg-additional-options "-fmodules -std=c++20 -Wno-global-module" }
3 // { dg-module-cmi M:part }
4
5 module;
6 struct exception_ptr {
7 // implicitly noexcept and constexpr
8 friend bool operator==(const exception_ptr&, const exception_ptr&) = default;
9 };
10 export module M:part;
11 export template <typename = int> void enqueue() {
12 exception_ptr e;
13 e == e;
14 }