blob: 43fc2207d78725c1145dc3c2038362b94ae34040 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fgnu-tm -fdump-tree-optimized-asmname" }
struct __attribute__((transaction_safe)) A
{
};
struct B : public A
{
void f();
};
struct C
{
};
struct D : public C
{
};
struct E : public D, public A
{
void f();
};
void B::f() { }
void E::f() { }
// { dg-final { scan-tree-dump-times "_ZN1B1fEv" 1 "optimized" } }
// { dg-final { scan-tree-dump-times "_ZGTtN1B1fEv" 1 "optimized" } }
// { dg-final { scan-tree-dump-times "_ZN1E1fEv" 1 "optimized" } }
// { dg-final { scan-tree-dump-times "_ZGTtN1E1fEv" 1 "optimized" } }