1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-ipa-inline -fdump-ipa-cp -fno-early-inlining" } */
3 class wxPaintEvent { };
7 virtual int GetLayoutDirection() const{}
8 virtual void SetLayoutDirection(int){}
10 struct wxWindowDC : public wxDCBase {};
11 struct wxBufferedDC : public wxDCBase
13 void Init(wxDCBase*dc) {
16 void InitCommon(wxDCBase*dc) {
18 SetLayoutDirection(dc->GetLayoutDirection());
21 struct wxBufferedPaintDC : public wxBufferedDC {
27 void OnPaint(wxPaintEvent & event) {
30 /* { dg-final { scan-ipa-dump-times "Discovered a virtual call to a known target" 2 "cp" } } */