2 /* { dg-do compile } */
15 #if __cplusplus <= 201402L
16 throw( Exception ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
20 #if __cplusplus <= 201402L
21 throw( Exception ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
29 // This line used to fail because Exception wasn't looked up in the
32 #if __cplusplus <= 201402L
33 throw( Exception ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
39 ns::Test::Test( int n )
40 #if __cplusplus <= 201402L
41 throw( Exception ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
47 int main(int argc, char* argv[]) {