summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/local2.C
blob: 82d812ca270a44b734d60b21acc05882605f9e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/17155
// { dg-do link }

struct A {
  virtual ~A() {}
};


void tsk_tsk(void)
{
  struct B : public A {
    B(int) {}
  };
}

int main () {}