gcc/testsuite/g++.dg/modules/thunk-1_a.C
raw| 1 | // { dg-additional-options -fmodules-ts } |
| 2 | |
| 3 | export module foo; |
| 4 | // { dg-module-cmi foo } |
| 5 | |
| 6 | export struct Base |
| 7 | { |
| 8 | virtual ~Base () {} |
| 9 | int m; |
| 10 | }; |
| 11 | |
| 12 | // Force the creation of implicit members, because we get that wrong |
| 13 | // in the importer and think its imported (as of 2018-11-27 this |
| 14 | // causes an ICE, previously it happened to work in this particular |
| 15 | // testcase. |
| 16 | Base x; |
| 17 | |
| 18 | export struct Derived : virtual Base |
| 19 | { |
| 20 | ~Derived () {} |
| 21 | }; |
| 22 | |
| 23 | Derived y; |