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;
}