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