Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.eh/tmpl1.C

raw
1 // { dg-do run }
2 template <class T>
3 void f()
4 #if __cplusplus <= 201402L
5 throw (T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
6 #endif
7 {
8 throw 7;
9 }
10
11
12 int main()
13 {
14 try {
15 f<int>();
16 } catch (...) {
17 return 0;
18 }
19 }