* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / props-2.c
blobacbe16a40ab5323c92c09371923aba8258ada5f9
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-ipa-tmipa" } */
4 /* Test that irrevocability gets set for the obvious case. */
6 int global;
7 int george;
9 extern void crap() __attribute__((transaction_unsafe));
11 void
12 foo(){
13 __transaction_relaxed {
14 global++;
15 crap();
16 george++;
20 /* { dg-final { scan-ipa-dump-times "GTMA_MAY_ENTER_IRREVOCABLE" 1 "tmipa" } } */