blob: 61082976e67b528e3ad7ade698ae8fdc6384074c [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fgnu-tm" }
/* { dg-add-options bind_pic_locally } */
class InputStream
{
public:
virtual unsigned int readUint32 () = 0;
};
class Building
{
public:
__attribute__((transaction_safe)) Building (InputStream *stream);
__attribute__((transaction_safe)) void freeGradients ();
void load (InputStream *stream);
};
Building::Building (InputStream *stream)
{
load(stream);
}
void Building::load (InputStream *stream)
{
int j = (int)stream->readUint32 ();
freeGradients ();
}