diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/lookup4.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/lookup4.C | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup4.C b/gcc/testsuite/g++.old-deja/g++.other/lookup4.C deleted file mode 100644 index 59b7a75b2bd..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/lookup4.C +++ /dev/null @@ -1,21 +0,0 @@ -// Test for proper handling of references to overloaded member functions. - -struct A { - static void f (int) { } - void f (); -}; - -void (*p)(int) = &A::f; - -void A::f () -{ - p = f; -} - -int main() -{ - A a; - p = &a.f; - (a.f)(); - (a.f)(42); -} |