* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / pmf3.C
blob448d7914571aa38f92b2f53ea200bb4242cfd52b
1 // { dg-do assemble  }
2 // Submitted by Nathan Sidwell <nathan@acm.org>
3 // Bug: g++ was crashing after giving errors.
5 template<class T>
6   void connect_to_method(
7     T *receiver,
8     void (T::*method)())
9   {}
11 class Gtk_Base
13 public:
14   void expose();
15   void show();
16   void show(int);
17   Gtk_Base();
21 Gtk_Base::Gtk_Base()
23   connect_to_method(this,&show);   // { dg-error "pointer to member" } invalid pmf expression
24   connect_to_method(this,&expose); // { dg-error "pointer to member" } invalid pmf expression