Test to test -mdynamic-no-pic -O2 -mpowerpc64 on Darwin.
From-SVN: r74858
This commit is contained in:
parent
ef342e209f
commit
b240b5a250
29
gcc/testsuite/gcc.dg/macho-lo-sum.c
Normal file
29
gcc/testsuite/gcc.dg/macho-lo-sum.c
Normal file
@ -0,0 +1,29 @@
|
||||
/* { dg-do compile { target powerpc*-*-darwin* } } */
|
||||
/* { dg-options "-O2 -force_cpusubtype_ALL -mpowerpc64 -mdynamic-no-pic" } */
|
||||
|
||||
long long knight_attacks[64];
|
||||
long long InitializeAttackBoards(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
return InitializeAttackBoards();
|
||||
}
|
||||
|
||||
long long InitializeAttackBoards(void)
|
||||
{
|
||||
|
||||
int i,j;
|
||||
|
||||
for(i=0;i<64;i++) { }
|
||||
|
||||
for(i=0;i<64;i++) {
|
||||
knight_attacks[i]=0;
|
||||
for(j=0;j<8;j++) {
|
||||
knight_attacks[i]= 0;
|
||||
}
|
||||
}
|
||||
|
||||
return knight_attacks[0];
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user