PR middle-end/77674
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wreturn-type-3.C
blob78a3851550ff993bbaad060253afc8ae7cb07053
1 // PR middle-end/19583
2 // { dg-options "-Wreturn-type -O" }
4 struct E{};
6 inline int bar()
7 #if __cplusplus <= 201402L
8 throw(E)                        // { dg-warning "deprecated" "" { target { c++11 && { ! c++1z } } } }
9 #endif
11   return 0;
14 void foo ()
16   bar();