aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.eh/crash1.C
blob: a4440c7bd95a5fb3635049836d3f9b32a2c77d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// { dg-options "-O1 -fno-inline-functions" }

struct A
{
  ~A ();
};

bool foo ();

int i;
int j;

A bar ()
{
  for (i = 0; i < 1; ++i)
    if (j)
      {
	A tmp;
	return tmp;
      }
}