Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tm/debug-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-fgnu-tm -O0 -fdump-tree-tmmark-lineno" } */ /* Test that instrumented statements have correct location info. */ int a,b, c, z; void testing(){ c=9; } int main() { b = 9898; __transaction_relaxed { z = c; a = 888; testing(); } return 0; } /* { dg-final { scan-tree-dump-times ":13:.*b = 9898" 1 "tmmark" } } */ /* { dg-final { scan-tree-dump-times ":14:.*_ITM_beginTransaction" 1 "tmmark" } } */ /* { dg-final { scan-tree-dump-times ":15:.*ITM_WU. \\(&z" 1 "tmmark" } } */ /* { dg-final { scan-tree-dump-times ":16:.*ITM_WU. \\(&a" 1 "tmmark" } } */