aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/20061127-1.c
blob: 0b70a5ae2b62c51d621700d4d14dc0a0df0862c0 (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
28
29
/* { dg-do compile { target fpic } } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O1 -fPIC" } */

/* PR target/29319 */

extern void abort(void);
static char l_info[100];

void
bug1 (unsigned long tag)
{
  char *info = l_info;
  info[tag - 0x100000000 + 1] = 1;
}

void
bug2 (unsigned long tag)
{
  char *info = l_info;
  info[tag - 0x700000000 + 2] = 2;
}

void
bug3 (unsigned long tag)
{
  char *info = l_info;
  info[tag - 0x100000000 + 1] = 3;
}