☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
consteval15.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/consteval15.C
code
plain
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);