summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static7.C
blob: 548485b82c6163296c3206c38ad5898124b70706 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do run  }
// Origin: Jason Merrill <jason@cygnus.com>

int j = 42;

int main ()
{
  static int i = j;
  return (i != 42);
}