2 // { dg-lto-options { { -O3 -flto } } }
10 virtual void calcPercent( const char *name,int pos,int size ) {}
17 Looper( Position *cc,int size )
18 : m_cc(cc), m_size(size) {}
23 for( int pos=0; pos<m_size; pos++ )
25 m_cc->calcPercent( "",pos,m_size );
39 virtual ~EmptyClass() {}
43 class Combined : public EmptyClass, public Position
46 Combined( void ) : m_percent(0) {}
49 void calcPercent( const char *name,int pos,int size )
51 int percent = 100*pos/size;
52 if( percent!=m_percent )
62 int main( int argc,char **argv )
64 Combined *comb = new Combined();
65 Looper *looper = new Looper( comb,argc );