Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;
}