]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/temporary3.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / temporary3.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/temporary3.C b/gcc/testsuite/g++.old-deja/g++.jason/temporary3.C
deleted file mode 100644 (file)
index 3ffeec7..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Bug: the temporary returned from f is elided, causing a to be constructed
-// twice but only destroyed once.
-
-extern "C" int printf (const char *, ...);
-
-int c,d;
-
-struct A {
-  A (int) { c++; }
-  ~A () { d++; }
-  A (const A&) { c++; }
-  int i;
-};
-
-A f ()
-{ return 1; }
-
-int main ()
-{
-  {
-    A a (1);
-    a = f ();
-  }
-  printf ("%d %d\n", c, d);
-  return c != d;
-}