Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-condition.C
blob: 733d494c4d71d2ff58eb66cfc8f14d2040ac870a [
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" }
}