]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/dtor10.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dtor10.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dtor10.C b/gcc/testsuite/g++.old-deja/g++.other/dtor10.C
deleted file mode 100644 (file)
index c8f7bab..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-// Origin: Mark Mitchell <mark@codesourcery.com>
-
-extern "C" void abort ();
-
-int j;
-
-struct S {
-  static S* s[5];
-
-  S () { s[j++] = this; }
-  S (const S&) { s[j++] = this; }
-  ~S () { 
-    for (int k = 0; k < j; ++k)
-      if (s[k] == this)
-       return;
-    abort ();
-  }
-};
-
-S* S::s[5];
-
-struct T {
-  int i;
-  S s;
-};
-
-T t;
-
-T f () {
-  return t;
-}
-
-void g (S) {
-};
-
-int main ()
-{
-  g (f ().s);
-}
-