]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/temporary4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / temporary4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/temporary4.C b/gcc/testsuite/g++.old-deja/g++.jason/temporary4.C
deleted file mode 100644 (file)
index bb7e56f..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// Bug: g++ initializes both B::i and B::j before destroying any temps.
-
-extern "C" int printf (const char *, ...);
-
-int c = 0;
-int d = 0;
-int r = 0;
-
-struct A {
-  A() { if (c != d) r = 1; ++c; }
-  A(const A&);  // declare so g++ returns A on the stack
-  ~A() { ++d; }
-  operator int () { return 0; }
-};
-
-A foo ()
-{
-  return A();
-}
-
-struct B {
-  int i;
-  int j;
-  B(): i(foo()), j(foo()) { }
-};
-
-int main()
-{
-  B b;
-  return r;
-}