Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
c-c++-common
/
tm
/
cancel-1.c
blob: 6d60f2648c4467065d2f84c7903151947b2126c7 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */
void
unsafe
(
void
)
__attribute__
((
transaction_unsafe
));
void
f
(
void
)
{
int
a
;
__transaction_atomic
{
a
=
1
;
__transaction_atomic
{
__transaction_cancel
;
}
}
unsafe
();
}