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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [switch1.C] - Blame information for rev 751

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-O1" }
2
 
3
template 
4
int f(T t) {
5
  switch (t) {
6
  case 1:
7
    return 5;
8
  case 2:
9
    return 6;
10
  case 3:
11
    return -4;
12
  case 4:
13
    return 8;
14
  case 5:
15
    return 12;
16
  case 6:
17
    return 13;
18
  default:
19
    return -27;
20
  }
21
}
22
 
23
template int f(int);

powered by: WebSVN 2.1.0

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