diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/pmf7.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/pmf7.C | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/pmf7.C b/gcc/testsuite/g++.old-deja/g++.jason/pmf7.C deleted file mode 100644 index 8ef92fbb679..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/pmf7.C +++ /dev/null @@ -1,27 +0,0 @@ -// PRMS Id: 6486 -// Make sure that no confused handling of COND_EXPRs and SAVE_EXPRs messes -// with the number of calls to foo. - -int c; - -struct A { - void f () {} - virtual void g () {} -}; - -A& foo () -{ - static A a; - ++c; - return a; -} - -int main () -{ - void (A::*p)() = &A::f; - (foo ().*p)(); - p = &A::g; - (foo ().*p)(); - - return 2 - c; -} |