re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wreturn-type-3.C
blob590287ae431d532aaaaef1262c590ff4c12c1f92
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++17 } } } }
9 #endif
11   return 0;
14 void foo ()
16   bar();