index.html (3.10): Add note about mips atomicity.h.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20021018-1.c
blobf11de4859ef8d7cf3f0777a19c929312eeda1483
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fpic" } */
4 extern void abort (void);
5 extern void exit (int);
7 static const long foo [10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
9 long __attribute__((noinline))
10 bar (int x)
12 return foo [x - 0x6ffffffa];
15 int
16 main (void)
18 if (bar (0x6ffffffc) != 2)
19 abort ();
20 exit (0);