blob: 3b50904b5d966b9be277ffaca7a80ca736734d73 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fgnu-tm -O" }
class InputStream
{
public:
// __attribute__((transaction_safe))
virtual unsigned int readUint32 () = 0;
};
class Building
{
public:
__attribute__((transaction_safe))
Building (InputStream *stream);
};
Building::Building (InputStream *stream)
{
stream->readUint32 (); /* { dg-error "InputStream::readUint32" } */
}