URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Test for -Wtraditional warnings on switch operands of type long.
|
/* Test for -Wtraditional warnings on switch operands of type long.
|
Note, gcc should omit these warnings in system header files.
|
Note, gcc should omit these warnings in system header files.
|
By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/22/2000. */
|
By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/22/2000. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wtraditional" } */
|
/* { dg-options "-Wtraditional" } */
|
|
|
void
|
void
|
testfunc (l)
|
testfunc (l)
|
long l;
|
long l;
|
{
|
{
|
switch (l) /* { dg-warning "switch expression" "switch expression" } */
|
switch (l) /* { dg-warning "switch expression" "switch expression" } */
|
{
|
{
|
default:
|
default:
|
break;
|
break;
|
}
|
}
|
|
|
# 17 "sys-header.h" 3
|
# 17 "sys-header.h" 3
|
/* We are in system headers now, no -Wtraditional warnings should issue. */
|
/* We are in system headers now, no -Wtraditional warnings should issue. */
|
|
|
switch (l)
|
switch (l)
|
{
|
{
|
default:
|
default:
|
break;
|
break;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.