blob: f3dceb929d26a00e7fa90abe279e0d2ed32437ad [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fprofile-use -std=gnu++11 -Wno-return-type -Wno-missing-profile" }
class A {
int m_fn1() const;
unsigned m_fn2() const;
};
class B {
public:
virtual void m_fn1();
};
class C final : B {
C();
virtual void m_fn2() { m_fn1(); }
};
int a;
unsigned A::m_fn2() const {
if (m_fn1())
return 0;
a = m_fn2();
}
C::C() {}