aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ptrmem2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/ptrmem2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/ptrmem2.C43
1 files changed, 0 insertions, 43 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ptrmem2.C b/gcc/testsuite/g++.old-deja/g++.pt/ptrmem2.C
deleted file mode 100644
index c6927d19472..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/ptrmem2.C
+++ /dev/null
@@ -1,43 +0,0 @@
-struct S;
-
-template <S* (S::*p)()>
-struct F {
- S* f (S& s)
- {
- return (s.*p)();
- }
-};
-
-template <int S::*p>
-struct D {
- void d (S& s)
- {
- (s.*p) = 3;
- }
-};
-
-struct S {
- S* g ();
- int i;
- F<&S::g> fg;
- D<&S::i> di;
- S* h(), k(F<&S::h>);
- F<&S::g> fg2;
- D<&S::i> di2;
-};
-
-S* S::g()
-{
- return this;
-}
-
-int main()
-{
- S s;
- s.i = 2;
- s.di.d (s);
- if (s.i != 3)
- return 1;
- if (s.fg2.f(s) != &s)
- return 1;
-}