Debian Codegraph @

gcc/testsuite/g++.dg/modules/contracts-5_a.C

raw
1 // PR c++/108205
2 // Test that the implicitly declared handle_contract_violation function is
3 // properly matched with a later declaration in an importing TU.
4 // { dg-additional-options "-fmodules -fcontracts -fcontract-continuation-mode=on" }
5 // { dg-module-cmi test }
6
7 export module test;
8 export inline void foo(int x) noexcept [[ pre: x != 0 ]] {}