blob: 590287ae431d532aaaaef1262c590ff4c12c1f92 [file] [log] [blame]
// PR middle-end/19583
// { dg-options "-Wreturn-type -O" }
struct E{};
inline int bar()
#if __cplusplus <= 201402L
throw(E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
#endif
{
return 0;
}
void foo ()
{
bar();
}