]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/return.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / return.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/return.C b/gcc/testsuite/g++.old-deja/g++.jason/return.C
deleted file mode 100644 (file)
index c737a3e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// PRMS Id: 5331
-// Bug: the return value of foo is constructed in a temporary and then
-// copied into the return slot.  This is not necessary.
-
-int c = 0;
-
-struct X {
-   X(int i) { }
-   X(X const &XX) { c = 1; }
-   ~X() { }
-};
-
-const X foo() { 
-  return X(3); 
-};
-
-int main()
-{
-  foo();
-  return c;
-}