summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/virtual1.C
blob: f30730f294a0e2cbf19fad7ff108e83190e543bf (plain)
1
2
3
4
5
6
7
// { dg-do run  }
  struct V { virtual ~V() {} };
  template <class T> struct A : virtual V { };
  template <class T> struct B {
    virtual void f() { T foo; }
  };
  int main() { B< A<int> > bar; }