Debian Codegraph @

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

raw
1 // { dg-do assemble }
2
3 void athrow(const int & e)
4 #if __cplusplus <= 201402L
5 throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
6 #endif
7 {
8 throw e;
9 }
10
11 int main(void)
12 {
13 athrow(int());
14 return 0;
15 }