Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.pt/repo3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do link } // { dg-options "-frepo" } // { dg-require-host-local "" } // { dg-skip-if "dkms are not final links" { vxworks_kernel } } // Test that we properly generate the vtable and such for C. // Contributed by scott snyder <snyder@fnal.gov> // Build then link: struct A { virtual ~A () {} }; template <typename T> struct B : virtual public A { virtual void foo () {} }; template <typename T> struct C : virtual public A { }; template <typename T> struct D : public B<T>, public C<T> { }; int main () { D<int> x; return 0; } // { dg-final { cleanup-repo-files } }