Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/consteval15.C

raw
1 // { dg-do compile { target c++11 } }
2
3 #if __cpp_consteval >= 201811L
4 consteval
5 #else
6 constexpr
7 #endif
8 int
9 foo (int x)
10 {
11 return x * x * x * x;
12 }
13
14 auto a = foo (2);