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/] [g++.dg/] [opt/] [switch1.C] - Blame information for rev 318

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

Line No. Rev Author Line
1 301 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.