summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/pr54831.C
blob: 8e7312061a022332108e4e2bdb909477d0a3148e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR debug/54831
// { dg-do compile }
// { dg-options "-O -fno-split-wide-types -g" }

struct S
{
  int m1();
  int m2();
};

typedef void (S::*mptr) ();

mptr gmp;
void bar (mptr f);

void foo (mptr f)
{
  f = gmp;
  bar (f);
}