summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/const3.C
blob: 813b398c916901035a0b162428a70d916fa92051 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do run  }
// Bug: bar isn't emitted, which causes havoc.

extern int i;
const int bar = i;
int i = 5;

int main()
{
  return bar != 5;
}