Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / tm / instrumented-mask.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */
3
4 /* If we're sure to go irrevocable, as in the case below, do not pass
5    PR_INSTRUMENTEDCODE to the run-time if there is nothing
6    instrumented within the transaction.  */
7
8 int
9 main()
10 {
11   __transaction_relaxed { __asm__(""); }
12   return 0;
13 }
14
15 /* { dg-final { scan-tree-dump-times " instrumentedCode" 0 "tmmark" } } */
16 /* { dg-final { cleanup-tree-dump "tmmark" } } */