1 // { dg-options "-O1" }
5 A(int arg) : ia(arg) {}
7 int mf(int arg) { return arg + ia; }
9 int func(int A::*pdm, int (A::*pmf)(int)) // 2. regular function
12 return ((&oa)->*pdm) + (oa.*pmf)(2);
19 int (A::*pmfa)(int) = &A::mf;
20 val = func( pda, pmfa );
22 printf("val=%d, expect 6 \n", val);