1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O0 -fdump-tree-tmmark-lineno" } */
3 
4 /* Test that instrumented statements have correct location info.  */
5 
6 int a,b, c, z;
7 
testing()8 testing(){
9     c=9;
10 }
11 
main()12 main() {
13 	b = 9898;
14 	__transaction_relaxed {
15 		z = c;
16 		a = 888;
17 		testing();
18 	}
19 	return 0;
20 }
21 
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" } } */
27