Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
consteval15.C
blob: feb77afba0101fec46dcb6cb59b8fa8ae09d96fd [
file
] [
log
] [
blame
]
// { 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
);