(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
opt/
pr71100.C
// PR c++/71100
// { dg-do compile }
// { dg-options "-O2" }

struct D { ~D (); };
struct E { D foo () { throw 1; } };

inline void
bar (D (E::*f) (), E *o)
{
  (o->*f) ();
}

void
baz (E *o)
{
  bar (&E::foo, o);
}