gcc/testsuite/g++.dg/opt/vt2.C
raw| 1 | // PR c++/34949 |
| 2 | // { dg-options "-O3" } |
| 3 | // { dg-add-options bind_pic_locally } |
| 4 | // { dg-final { scan-assembler-not "mov\[^\n\]*_ZTV" { target i?86-*-* x86_64-*-* } } } |
| 5 | |
| 6 | class Foo |
| 7 | { |
| 8 | public: |
| 9 | virtual ~Foo(); |
| 10 | }; |
| 11 | |
| 12 | Foo::~Foo() |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | |
| 17 | class Bar : public Foo |
| 18 | { |
| 19 | public: |
| 20 | virtual ~Bar(); |
| 21 | }; |
| 22 | |
| 23 | Bar::~Bar() |
| 24 | { |
| 25 | } |