URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
/* PR 17947 bad warning with implicit conversion and __attribute__((deprecated)) */
|
/* PR 17947 bad warning with implicit conversion and __attribute__((deprecated)) */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "" } */
|
/* { dg-options "" } */
|
|
|
struct Foo
|
struct Foo
|
{
|
{
|
operator int() __attribute__((deprecated));
|
operator int() __attribute__((deprecated));
|
};
|
};
|
|
|
void g(void)
|
void g(void)
|
{
|
{
|
Foo f;
|
Foo f;
|
(int)f; // { dg-warning "'Foo::operator int\\(\\)' is deprecated \\(declared at" }
|
(int)f; // { dg-warning "'Foo::operator int\\(\\)' is deprecated \\(declared at" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.