summaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/shuffle2.c
blob: c9f03ce00ad83ab2c4a029e6ea9a5bf07795828f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "reloc1.h"
#include <stdlib.h>

extern char testzero[16384];

int main()
{
  int i;
  if (foo.a != 1 || foo.b != &foo || foo.c != &bar || bar != 26)
    abort ();
  if (f1 () != 11 || f2 () != 12)
    abort ();
  for (i = 0; i < 16384; ++i)
    if (testzero[i])
      abort ();
  exit (0);
}

#ifdef __arm__
asm (".section nonalloced,\"aw\",%nobits\n\t"
     ".globl testzero\n\t"
     "testzero: .skip 16384");
#else
asm (".section nonalloced,\"aw\",@nobits\n\t"
     ".globl testzero\n\t"
     "testzero: .skip 16384");
#endif