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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20001108-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -fomit-frame-pointer" } */
3
 
4
extern void abort (void);
5
extern void exit (int);
6
 
7
void die (long) __attribute__ ((noreturn));
8
 
9
void die (long e)
10
{
11
  abort ();
12
  for (;;);
13
}
14
 
15
long foo (double i)
16
{
17
  if (i != 2.0)
18
    abort ();
19
  return 26;
20
}
21
 
22
long bar (long i, double x)
23
{
24
  if (x < 0) die (1);
25
  return foo (x);
26
}
27
 
28
main()
29
{
30
  if (bar (0, 2.0) != 26)
31
    abort ();
32
  exit (0);
33
}

powered by: WebSVN 2.1.0

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