blob: 10645bf74cfa8f5abbd40bddd394e6c9914accb3 [file] [log] [blame]
// PR c++/77379
// { dg-options -fabi-version=10 }
struct __attribute ((abi_tag ("bar"))) string { };
struct Mother
{
virtual ~Mother() {};
int bar;
};
struct Father
{
virtual string get_foo() = 0;
};
class Derived:
public Mother,
public Father
{
public:
string get_foo();
};
struct Final:
public Derived
{
};
int main()
{
Final().get_foo();
}
// { dg-final { scan-assembler "_ZThn\[0-9]+_N7Derived7get_fooEv" } }