summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/ptrmem2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/ptrmem2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/ptrmem2.C15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/ptrmem2.C b/gcc/testsuite/g++.old-deja/g++.other/ptrmem2.C
deleted file mode 100644
index 85730952d0c..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.other/ptrmem2.C
+++ /dev/null
@@ -1,15 +0,0 @@
-class cow {
-public:
- void moo (char *);
-};
-
-void f()
-{
- cow* c;
-
- void (cow::*fp0)(char*) = &cow::moo; // OK
- void (cow::*fp1)(int) = &cow::moo; // ERROR - conversion
- int (cow::*fp2)(char*) = &cow::moo; // ERROR - conversion
- int (cow::*fp3)(char*, void*) = fp2; // ERROR - conversion
- int (cow::*fp4)(double) = (int (cow::*)(double)) fp2; // OK
-}