OSDN Git Service

* gcc.dg/Warray-bounds.c: XFAIL test on 32-bit hppa targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20061127-1.c
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-options "-O1 -fPIC" } */
3
4 /* PR target/29319 */
5
6 extern void abort(void);
7 static char l_info[100];
8
9 void
10 bug1 (unsigned long tag)
11 {
12   char *info = l_info;
13   info[tag - 0x100000000 + 1] = 1;
14 }
15
16 void
17 bug2 (unsigned long tag)
18 {
19   char *info = l_info;
20   info[tag - 0x700000000 + 2] = 2;
21 }
22
23 void
24 bug3 (unsigned long tag)
25 {
26   char *info = l_info;
27   info[tag - 0x100000000 + 1] = 3;
28 }