Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
20100429.C
blob: 087ce32b2a69e2451a891521c176ffc9f007344f [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fgnu-tm" }
int
foo
(
int
a
);
int
foo
(
float
a
);
int
bar
(
int
a
)
{
int
r
;
__transaction_atomic
{
r
=
foo
(
a
);
// { dg-error "unsafe function call 'int foo\\(int\\)'" }
}
return
r
;
}