Debian Codegraph @

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

raw
1 // PR c++/101449
2 // { dg-additional-options -fmodules-ts }
3 // { dg-module-cmi pr101449 }
4
5 export module pr101449;
6
7 struct X {
8 bool b = true;
9 constexpr X() { }
10 constexpr X(const X&) { }
11 };
12
13 export constexpr X f() { return {}; }
14 export constexpr bool g(X x) { return x.b; }