Debian Codegraph @

gcc/testsuite/g++.dg/eh/spec9.C

raw
1 // PR c++/15745
2 // { dg-do run }
3
4 typedef int IntArray[10];
5 IntArray i;
6
7 void test_array()
8 #if __cplusplus <= 201402L
9 throw (IntArray) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
10 #endif
11 {
12 throw i;
13 }
14
15 int main ()
16 {
17 try
18 {
19 test_array();
20 }
21 catch (IntArray) {}
22 }