aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/return.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/return.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/return.C21
1 files changed, 0 insertions, 21 deletions
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
index c737a3ea8bd..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.jason/return.C
+++ /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;
-}