1 // PR c++/77379 2 // { dg-options -fabi-version=10 } 3 4 struct __attribute ((abi_tag ("bar"))) string { }; 5 6 struct Mother 7 { ~MotherMother8 virtual ~Mother() {}; 9 int bar; 10 }; 11 12 struct Father 13 { 14 virtual string get_foo() = 0; 15 }; 16 17 class Derived: 18 public Mother, 19 public Father 20 { 21 public: 22 string get_foo(); 23 }; 24 25 struct Final: 26 public Derived 27 { 28 }; 29 main()30int main() 31 { 32 Final().get_foo(); 33 } 34 35 // { dg-final { scan-assembler "_ZThn\[0-9]+_N7Derived7get_fooEv" } } 36