]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/ref7.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / ref7.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/ref7.C b/gcc/testsuite/g++.old-deja/g++.jason/ref7.C
deleted file mode 100644 (file)
index af64d6a..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// Testcase for the lifetime of a temporary object which is used to
-// initialize a reference.
-
-int destroyed = 0;
-
-struct A {
-  A() { }
-  A(int) { }
-  ~A() { destroyed++; }
-};
-
-A a;
-A foo () { return a; }
-
-int main()
-{
-  const A& ar = foo();
-  const A& ar2 = A();
-  const A& ar3 = (A)1;
-  return destroyed;
-}