OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020107-1.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* This testcase failed because - 1 - buf was simplified into ~buf and when
/* This testcase failed because - 1 - buf was simplified into ~buf and when
   later expanding it back into - buf + -1, -1 got lost.  */
   later expanding it back into - buf + -1, -1 got lost.  */
 
 
extern void abort (void);
extern void abort (void);
extern void exit (int);
extern void exit (int);
 
 
static void
static void
bar (int x)
bar (int x)
{
{
  if (!x)
  if (!x)
    abort ();
    abort ();
}
}
 
 
char buf[10];
char buf[10];
 
 
inline char *
inline char *
foo (char *tmp)
foo (char *tmp)
{
{
  asm ("" : "=r" (tmp) : "0" (tmp));
  asm ("" : "=r" (tmp) : "0" (tmp));
  return tmp + 2;
  return tmp + 2;
}
}
 
 
int
int
main (void)
main (void)
{
{
  bar ((foo (buf) - 1 - buf) == 1);
  bar ((foo (buf) - 1 - buf) == 1);
  exit (0);
  exit (0);
}
}
 
 

powered by: WebSVN 2.1.0

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