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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [treelang/] [execute/] [funccall.tree] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do run }
// { dg-do run }
// Tests whether initializtion works properly.
// Tests whether initializtion works properly.
external_reference void abort ();
external_reference void abort ();
external_reference void exit (int code);
external_reference void exit (int code);
external_definition int main ();
external_definition int main ();
static int foo ();
static int foo ();
foo
foo
{
{
        automatic int bar;
        automatic int bar;
        bar = +1;
        bar = +1;
        bar = bar + +1;
        bar = bar + +1;
        return bar;
        return bar;
}
}
main
main
{
{
  automatic int aaa;
  automatic int aaa;
  aaa = foo ();
  aaa = foo ();
  if (aaa == +2)
  if (aaa == +2)
    {
    {
      exit (0);
      exit (0);
    }
    }
  else
  else
    {
    {
      abort ();
      abort ();
    }
    }
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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