Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}