OSDN Git Service

PR c++/53549
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / eh / array1.C
1 // Test that we have one EH cleanup region for the whole array
2 // rather than one for each element.
3 // { dg-options "-fdump-tree-gimple" }
4
5 struct A
6 {
7   A();
8   ~A();
9 };
10
11 void f()
12 {
13   A a[10] = { };
14 }
15
16 // { dg-final { scan-tree-dump-times "catch" 1 "gimple" } }
17 // { dg-final { cleanup-tree-dump "gimple" } }