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