diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/return2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/return2.C | 23 |
1 files changed, 0 insertions, 23 deletions
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 index 272390903e8..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/return2.C +++ /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; -} |