Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-condition.C
blob: e81acba68ae1bd612bfa40d225ff25f6a857eef7 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// Core DR 948
constexpr
int
something
()
{
return
3
;
}
int
main
()
{
if
(
constexpr
long
v
=
something
())
{}
if
(
static
long
v
=
something
())
{
}
// { dg-error "'static' invalid" }
}