]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/template/vtable1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / template / vtable1.C
diff --git a/gcc/testsuite/g++.dg/template/vtable1.C b/gcc/testsuite/g++.dg/template/vtable1.C
deleted file mode 100644 (file)
index c5f122a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// Test that vtables are set up properly for constructors and destructors
-// of template classes.
-
-// { dg-do run }
-
-int r;
-
-template <class T>
-struct A {
-  virtual void f () { }
-  A() { f (); }
-  ~A() { f (); }
-};
-
-struct B : public A<int> {
-  virtual void f () { ++r; }
-};
-
-int main ()
-{
-  { B b; }
-  return r;
-}