URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-ansi -pedantic-errors -Wold-style-cast" }
|
// { dg-options "-ansi -pedantic-errors -Wold-style-cast" }
|
|
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 26 Dec 2001
|
// Contributed by Nathan Sidwell 26 Dec 2001
|
|
|
// PR 5089. old style cast to void should be permitted (think assert)
|
// PR 5089. old style cast to void should be permitted (think assert)
|
|
|
void foo ()
|
void foo ()
|
{
|
{
|
int i;
|
int i;
|
float f = (float)i; // { dg-warning "use of old-style cast" "" }
|
float f = (float)i; // { dg-warning "use of old-style cast" "" }
|
|
|
(void)i;
|
(void)i;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.