summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/const4.C
blob: b99726b861667402b6672dbed7003da64782e942 (plain)
1
2
3
4
5
6
7
8
// PR c++/27804
// { dg-do compile }

bool foo()
{
  const int i = X;  // { dg-error "not declared" }
  return i > 0;
}