(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tm/
props-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-fgnu-tm -fdump-ipa-tmipa" } */
       3  
       4  /* Test that irrevocability gets set for the obvious case.  */
       5  
       6  int global;
       7  int george;
       8  
       9  extern void crap() __attribute__((transaction_unsafe));
      10  
      11  void
      12  foo(){
      13      __transaction_relaxed {
      14  	global++;
      15  	crap();
      16  	george++;
      17      }
      18  }
      19  
      20  /* { dg-final { scan-ipa-dump-times "GTMA_MAY_ENTER_IRREVOCABLE" 1 "tmipa" } } */