1 /* Testcase for PR 40323. */
2 /* { dg-do compile } */
3 /* { dg-options "-fno-early-inlining" } */
4 /* { dg-add-options bind_pic_locally } */
6 extern void do_something (const char *, int);
14 Parent (const char *d) : data(d)
17 int funcOne (int delim) const;
25 AnotherParent (void) : d(0)
30 class Child : public AnotherParent, Parent
35 Child (const char *d) : Parent(d)
40 int Parent::funcOne (int delim) const
43 for (i = 0; i < delim; i++)
44 do_something(data, i);
49 int docalling (int (Child::* f)(int delim) const)
56 typedef int (Parent::* my_mp_type)(int delim);
58 int main (int argc, char *argv[])
61 int (Parent::* f)(int ) const;
62 int (Child::* g)(int ) const;
65 g = (int (Child::* )(int) const) f;