New test
From-SVN: r37113
This commit is contained in:
parent
2c21b2473c
commit
7d3af72b0a
1 changed files with 14 additions and 0 deletions
14
gcc/testsuite/g++.old-deja/g++.other/static15.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.other/static15.C
Normal file
|
@ -0,0 +1,14 @@
|
|||
// 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 ();
|
||||
}
|
Loading…
Add table
Reference in a new issue