aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/pmf8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/pmf8.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/pmf8.C31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/pmf8.C b/gcc/testsuite/g++.old-deja/g++.mike/pmf8.C
deleted file mode 100644
index 41a4c0194fb..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.mike/pmf8.C
+++ /dev/null
@@ -1,31 +0,0 @@
-int fail;
-
-class A *ptr_a;
-
-class A {
-public:
- char space1[24];
- virtual void foo() {
- if (this != ptr_a)
- fail = 1;
- }
-};
-
-class Space {
- char space2[36];
-};
-
-class B : public Space, public A {
-} b;
-
-void (B::*pmf1)() = &A::foo;
-void (A::*pmf2)() = &A::foo;
-
-int main() {
- ptr_a = &b;
- (b .* (void (B::*) ()) &A::foo) ();
- (b .* pmf1) ();
- (b .* pmf2) ();
- (b .* &A::foo) ();
- return fail;
-}