summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/ptrmem1.C
blob: 0a02a53a9bf7f059cd270f14276c99861c066a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-O2" }

class QWidget
{
  public: void repaint( bool erase  = 1 );
};
void f (void)
{
  typedef void (QWidget::*A)(bool);
  A b = &QWidget::repaint;
}