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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr25183.c] - Rev 867

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

/* { dg-do compile } */
/* { dg-options "-pedantic" } */
 
enum err {
  err_IO = 0x8a450000, /* { dg-warning "int" } */
  err_NM,
  err_EOF,
  err_SE,
  err_PT
};
static enum err E_;
int error()
{
  switch (E_) {
    case err_IO : break;  /* { dg-warning "overflow" } */
    case err_NM : break;  /* { dg-warning "overflow" } */
    case err_EOF : break; /* { dg-warning "overflow" } */
    case err_SE : break;  /* { dg-warning "overflow" } */
    case err_PT : break;  /* { dg-warning "overflow" } */
    default : return 0;
  }
}
 

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.