]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/pmf7.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / pmf7.C
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 (file)
index 8ef92fb..0000000
+++ /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;
-}