Handle symbol visibility/locality for PIE/PIC
[official-gcc.git] / gcc / testsuite / c-c++-common / tm / trxn-expr.c
blob53d4677e3e6879ba983b32984bb140a221c0ed1b
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */
4 int y, x, york;
6 void foobar(void)
8 x = y + __transaction_atomic (york);
11 /* { dg-final { scan-tree-dump-times "_ITM_RU.*york" 1 "tmmark" } } */
12 /* { dg-final { scan-tree-dump-times "_ITM_RU" 1 "tmmark" } } */
13 /* { dg-final { cleanup-tree-dump "tmmark" } } */