summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C
blob: 33462946aed57cdddf8e2c1e135f5ed8415f25ec (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 compile } */
/* { dg-options "-O1 -fdump-tree-cfg" } */
/* { dg-add-options bind_pic_locally } */

double a;
void t()
{
	a=1;
}
void t1(void);
void abort(void);

void q()
{
	try {
		t();
	}
	catch (...) {abort();}
}
/* We shouldnotice nothrow attribute.  */
/* { dg-final { scan-tree-dump-times "exception" 0 "cfg"} } */
/* { dg-final { cleanup-tree-dump "cfg" } } */