1 // PR middle-end/19583
2 // { dg-options "-Wreturn-type -O" }
3
4 struct E{};
5
bar()6 inline int bar()
7 #if __cplusplus <= 201402L
8 throw(E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
9 #endif
10 {
11 return 0;
12 }
13
foo()14 void foo ()
15 {
16 bar();
17 }
18