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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20070424-1.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 jeremybenn
extern void abort (void);
2
extern void exit (int);
3
 
4
void do_exit (void) { exit (0); }
5
void do_abort (void) { abort (); }
6
 
7
void foo (int x, int a)
8
{
9
  if (x < a)
10
    goto doit;
11
  do_exit ();
12
  if (x != a)
13
    goto doit;
14
 
15
  /* else */
16
  do_abort ();
17
  return;
18
 
19
doit:
20
  do_abort ();
21
}
22
 
23
int main()
24
{
25
  foo (1, 0);
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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