OSDN Git Service

For Greta Yorsh.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tm / 20100524-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O0" } */
3
4 typedef struct {
5         int value[5];
6 } type_t;
7
8 __attribute__((transaction_safe))
9 type_t func_move ();
10
11 __attribute__((transaction_safe))
12 type_t func_push (int type)
13 {
14         type_t trace;
15
16         if (type == 9)
17                 trace = func_move();
18
19         return trace;
20 }