1 /* We should specialize for &b and devirtualize the call.
2 Previously we were failing by considering CLOBBER statement to be
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -fdump-ipa-cp -fipa-cp-clone -Wno-return-type" } */
8 void operator==(const A &);
15 template <typename T, typename M> class C {
18 const M &m_fn2(const T &);
19 virtual void m_fn1() {}
24 template <typename T, typename M> const M &C<T, M>::m_fn2(const T &) {
33 void fn1() { b.m_fn2(0); }
34 /* { dg-final { scan-ipa-dump-times "Discovered a virtual call to a known target" 1 "cp" } } */