Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
();
}