Debian Codegraph @

gcc/testsuite/g++.dg/tm/pr51212.C

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -fnon-call-exceptions" }
3
4 struct S
5 {
6 S ()
7 {
8 }
9 };
10
11 __attribute__ ((transaction_callable))
12 void foo (int *p)
13 {
14 S s;
15 if (*p)
16 ;
17 }
18
19 // { dg-message "sorry, unimplemented: transactional memory is not supported with non-call exceptions" "-fnon-call-exceptions and -fgnu-tm together" { target *-*-* } 0 }