Sign in
gnu
/
gcc
/
7d75ea04cf6d9c8960d5c6119d6203568b7069e9
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-condition.C
blob: 388a73488e7a363ffab2b0fdfb053942b6ee96ec [
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 "decl-specifier invalid" }
}