Commit a2ad7995 by Dehao Chen Committed by Dehao Chen

devirt3.C: New test.

2013-10-24  Dehao Chen  <dehao@google.com>

	* g++.dg/opt/devirt3.C: New test.

From-SVN: r204022
parent 8170608b
2013-10-24 Dehao Chen <dehao@google.com>
* g++.dg/opt/devirt3.C: New test.
2013-08-24 Tobias Burnus <burnus@net-b.de> 2013-08-24 Tobias Burnus <burnus@net-b.de>
PR other/33426 PR other/33426
......
// { dg-do compile }
// { dg-options "-O2" }
class ert_RefCounter {
protected:
int refCounterE;
virtual ~ert_RefCounter() {}
};
class ebs_Object : virtual public ert_RefCounter {
};
class dpr_App : public ebs_Object {
public:
virtual void run();
};
class dpr_Job : public ebs_Object {};
void dpr_run(ebs_Object& objectA) {
((dpr_App&)objectA).run();
dpr_Job jobL;
dpr_run(jobL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment