Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/is-constant-evaluated11.C

raw
1 // PR c++/97051
2 // { dg-do compile { target c++20 } }
3
4 namespace std {
5 constexpr inline bool
6 is_constant_evaluated () noexcept
7 {
8 return __builtin_is_constant_evaluated ();
9 }
10 }
11
12 template<typename>
13 requires (std::is_constant_evaluated())
14 constexpr int a = 0;
15
16 constexpr int b = a<int>;