2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / debug-1.c
blob01acfae4d03b309f26d826981e7989abe4ffe845
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O0 -fdump-tree-tmmark-lineno" } */
4 /* Test that instrumented statements have correct location info. */
6 int a,b, c, z;
8 testing(){
9 c=9;
12 main() {
13 b = 9898;
14 __transaction_relaxed {
15 z = c;
16 a = 888;
17 testing();
19 return 0;
22 /* { dg-final { scan-tree-dump-times ": 13:.*b = 9898" 1 "tmmark" } } */
23 /* { dg-final { scan-tree-dump-times ": 14:.*_ITM_beginTransaction" 1 "tmmark" } } */
24 /* { dg-final { scan-tree-dump-times ": 15:.*ITM_WU. \\(&z" 1 "tmmark" } } */
25 /* { dg-final { scan-tree-dump-times ": 16:.*ITM_WU. \\(&a" 1 "tmmark" } } */
26 /* { dg-final { cleanup-tree-dump "tmmark" } } */