aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libitm/testsuite/libitm.c++/throwdown.C
blob: 8c65508656ae49cd141712306d0ea4a9e9ae89c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }

#include <libitm.h>

static void throwit() {
	throw 1;
}

void tranfunc() {
	__transaction_atomic {
		throwit();
	}
}