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/] [20010106-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright 2001 Free Software Foundation
2
   Contributed by Alexandre Oliva <aoliva@redhat.com> */
3
 
4
int f(int i) {
5
  switch (i)
6
  {
7
    case -2:
8
      return 33;
9
    case -1:
10
      return 0;
11
    case 0:
12
      return 7;
13
    case 1:
14
      return 4;
15
    case 2:
16
      return 3;
17
    case 3:
18
      return 15;
19
    case 4:
20
     return 9;
21
    default:
22
      abort ();
23
  }
24
}
25
 
26
int main() {
27
  if (f(-1))
28
    abort ();
29
  exit (0);
30
}

powered by: WebSVN 2.1.0

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