Debian Codegraph @

gcc/testsuite/g++.dg/modules/constexpr-if-1_a.C

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options -fmodules }
3
4 export module M;
5
6 export
7 template <class T>
8 inline void f()
9 {
10 []<int M>() -> int {
11 if constexpr (M > 0) { return true; }
12 else { return false; }
13 };
14 }