diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/temporary8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/temporary8.C | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/temporary8.C b/gcc/testsuite/g++.old-deja/g++.jason/temporary8.C deleted file mode 100644 index bb0698e2e3c..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/temporary8.C +++ /dev/null @@ -1,25 +0,0 @@ -// Test for proper handling of temporaries in ?: exprs. - -extern "C" int printf (const char *, ...); -int c = 0, d = 0; - -class A { -public: - A() { ++c; } - A(const A&) { ++c; } - ~A() { ++d; } -}; - -A f (const A& a) -{ - return (c ? A() : A()); -} - -int main() -{ - { - f (c ? A() : A()); - } - printf ("%d %d\n", c, d); - return c != d || c != 2; -} |