Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-70204b.C

raw
1 // PR c++/70204
2 // { dg-do compile { target c++11 } }
3
4 int a;
5
6 void fn1 ()
7 {
8 const int x = 0 * a;
9 constexpr int y = x; // { dg-error "constant" }
10 }