tree-optimization/115701 - fix maybe_duplicate_ssa_info_at_copy
[official-gcc.git] / gcc / testsuite / g++.dg / tm / pr47747.C
blob3b50904b5d966b9be277ffaca7a80ca736734d73
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -O" }
4 class InputStream
6         public:
7 //        __attribute__((transaction_safe))
8         virtual unsigned int readUint32 () = 0;
9 };
11 class Building
13         public:
14         __attribute__((transaction_safe))
15         Building (InputStream *stream);
18 Building::Building (InputStream *stream)
20         stream->readUint32 (); /* { dg-error "InputStream::readUint32" } */