OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / eh / cleanup4.C
1 // PR 16254
2 // { dg-do compile }
3 // We lost a CLEANUP_POINT_EXPR, leading to a crash destroying temp of A.
4
5 struct A
6 {
7   ~A ();
8   A (int);
9 };
10
11 int bar (const A &);
12
13 void
14 foo (int i)
15 {
16   int format[1] = { bar (A (i)) };
17 }