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