diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/pmf3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/pmf3.C | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/pmf3.C b/gcc/testsuite/g++.old-deja/g++.other/pmf3.C deleted file mode 100644 index 237812246e5..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/pmf3.C +++ /dev/null @@ -1,24 +0,0 @@ -// Submitted by Nathan Sidwell <nathan@acm.org> -// Bug: g++ was crashing after giving errors. - -template<class T> - void connect_to_method( - T *receiver, - void (T::*method)()) - {} - -class Gtk_Base -{ -public: - void expose(); - void show(); - void show(int); - Gtk_Base(); -}; - - -Gtk_Base::Gtk_Base() -{ - connect_to_method(this,&show); // ERROR - invalid pmf expression - connect_to_method(this,&expose); // ERROR - invalid pmf expression -} |