Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-70204b.C
blob: 2b07d4fec9e8fbd5692f154cc309723beec6ecd3 [
file
] [
log
] [
blame
]
// PR c++/70204
// { dg-do compile { target c++11 } }
int
a
;
void
fn1
()
{
const
int
x
=
0
*
a
;
constexpr
int
y
=
x
;
// { dg-error "constant" }
}