summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/20100524-2.c
blob: a3578cb27974bed9e6620a5fb695706e860e0558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O0" } */

typedef struct {
	int value[5];
} type_t;

__attribute__((transaction_safe))
type_t func_move ();

__attribute__((transaction_safe))
type_t func_push (int type)
{
	type_t trace;

	if (type == 9)
		trace = func_move();

	return trace;
}