Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/20061127-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { 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; }