gcc/testsuite/g++.dg/modules/noexcept-3_b.C
raw| 1 | // PR c++/119462 |
| 2 | // { dg-additional-options "-fmodules -std=c++20 -Wno-global-module" } |
| 3 | // { dg-module-cmi M } |
| 4 | |
| 5 | module; |
| 6 | struct exception_ptr { |
| 7 | // implicitly noexcept and constexpr, but this isn't known yet |
| 8 | friend bool operator==(const exception_ptr&, const exception_ptr&) = default; |
| 9 | }; |
| 10 | export module M; |
| 11 | export import :part; |
| 12 | export using ::exception_ptr; |