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] - Rev 801

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

// { dg-options "-O1" }

template <typename T>
int f(T t) {
  switch (t) {
  case 1:
    return 5;
  case 2:
    return 6;
  case 3:
    return -4;
  case 4:
    return 8;
  case 5:
    return 12;
  case 6:
    return 13;
  default:
    return -27;
  }
}

template int f(int);

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

powered by: WebSVN 2.1.0

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