]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/return2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / return2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/return2.C b/gcc/testsuite/g++.old-deja/g++.jason/return2.C
deleted file mode 100644 (file)
index 2723909..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// PRMS Id: 5368
-// Bug: the X temporary in foo() is not destroyed.
-
-int c = 0;
-
-struct X {
-  X (int) { c++; }
-  ~X() { c--; }
-};
-
-struct Y {
-   Y(const X &) { }
-};
-
-Y foo() { 
-  return X(3); 
-};
-
-int main()
-{
-  foo();
-  return c;
-}