Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / abi-tag23.C
blob4a1c38bc580f011c07c78c41874c779a94f13bb6
1 // PR c++/77379
2 // { dg-options "-fabi-version=0 -Wabi=10" }
4 struct __attribute ((abi_tag ("bar"))) string { };
6 struct Mother
8   virtual ~Mother() {};
9   int bar;
12 struct Father
14   virtual string get_foo()  = 0;
17 class Derived:
18   public Mother,
19   public Father
21 public:
22   string get_foo();             // { dg-warning "mangled name" }
25 struct Final:
26     public Derived
30 int main()
32   Final().get_foo();
35 // { dg-final { scan-assembler "_ZThn\[0-9]+_N7Derived7get_fooB3barEv" } }