diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/inherit/local2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/inherit/local2.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/inherit/local2.C b/gcc/testsuite/g++.dg/inherit/local2.C new file mode 100644 index 000000000..82d812ca2 --- /dev/null +++ b/gcc/testsuite/g++.dg/inherit/local2.C @@ -0,0 +1,16 @@ +// PR c++/17155 +// { dg-do link } + +struct A { + virtual ~A() {} +}; + + +void tsk_tsk(void) +{ + struct B : public A { + B(int) {} + }; +} + +int main () {} |