OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20061127-1.c] - Rev 378

Go to most recent revision | Compare with Previous | Blame | View Log

/* { 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;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.