gcc/testsuite/g++.target/arm/pr115485.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fPIE -mno-pic-data-is-text-relative -mlong-calls -ffunction-sections" } */ |
| 3 | |
| 4 | struct c1 { |
| 5 | virtual void func1() = 0; |
| 6 | }; |
| 7 | struct c2 { |
| 8 | virtual ~c2() {} |
| 9 | }; |
| 10 | struct c3 : c2, c1 { |
| 11 | void func1() override; |
| 12 | void func3(); |
| 13 | }; |
| 14 | void c3::func1() { |
| 15 | func3(); |
| 16 | } |