OSDN Git Service

2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / thunk4.C
1 // { dg-require-weak "" }
2 // { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
3 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
4
5 struct Base 
6 {
7   virtual void Foo ();
8 };
9
10 struct Filler 
11 {
12   virtual void Baz ();
13 };
14
15 struct Derived : Filler, Base 
16 {
17   virtual void Foo ();
18 };
19
20 inline void Derived::Foo ()
21 {
22 }
23
24 Derived f;