summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static15.C
blob: ecf477f68cb28ad18d0e40ec480279e91fbcffe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run  }
// Origin: Mark Mitchell <mark@codesourcery.com>
// Special g++ Option: -fdata-sections

void f()
{
  static int ctors[3] = { 0, 0, 0 };
  
  ctors[2] = 7;
}

int main ()
{
  f ();
}