blob: b65beb15bc6c84a294a8a1d9708b10e635d3518d [file] [log] [blame]
/* PR 17947 bad warning with implicit conversion and __attribute__((deprecated)) */
/* { dg-do compile } */
/* { dg-options "" } */
struct Foo
{
operator int() __attribute__((deprecated));
};
void g(void)
{
Foo f;
(int)f; // { dg-warning "'Foo::operator int\\(\\)' is deprecated" }
}