1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O" } */
4 /* Since the non TM version of new_node() gets optimized away, it
5 shouldn't appear in the clone table either. */
6 /* { dg-final { scan-assembler-not "tm_clone_table" { target { ! *-*-darwin* } } } } */
7 /* { dg-final { scan-assembler-not "__DATA,__tm_clone_table" { target *-*-darwin* } } } */
10 extern void *malloc (__SIZE_TYPE__
);
12 __attribute__((transaction_pure
))
13 void exit(int status
);
18 __attribute__((transaction_safe
))
19 static node_t
*new_node(node_t
*next
)
22 node
= (node_t
*)malloc(sizeof(node_t
));
29 static node_t
*set_new()
32 __transaction_atomic
{
39 int main(int argc
, char **argv
)