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