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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020716-1.c] - Rev 825

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

extern void abort (void);
extern void exit (int);
 
int sub1 (int val)
{
  return val;
}
 
int testcond (int val)
{
  int flag1;
 
    {
      int t1 = val;
        {
          int t2 = t1;
            {
              flag1 = sub1 (t2) ==0;
              goto lab1;
            };
        }
      lab1: ;
    }
 
  if (flag1 != 0)
    return 0x4d0000;
  else
    return 0;
}
 
int main (void)
{
  if (testcond (1))
    abort ();
  exit (0);
}
 

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.