Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-type-3.C
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
();
}