summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/spec9.C
blob: 9e00d1c7535f7f31ab70055520132dc6cdfae3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/15745
// { dg-do run }

typedef int IntArray[10];
IntArray i;

void test_array() throw (IntArray)
{
  throw i;
}

int main ()
{
  try
    {
      test_array();
    }
  catch (IntArray) {}
}