Debian Codegraph @

gcc/testsuite/g++.dg/init/const4.C

raw
1 // PR c++/27804
2 // { dg-do compile }
3
4 bool foo()
5 {
6 const int i = X; // { dg-error "not declared" }
7 return i > 0;
8 }