Commit 88936a2b by H.J. Lu Committed by H.J. Lu

Add a test for PR ipa/63814

	PR ipa/63814
	* g++.dg/ipa/pr63814.C: New test.

From-SVN: r218268
parent ffc51023
2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
PR ipa/63814
* g++.dg/ipa/pr63814.C: New test.
2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
* gcc.target/aarch64/remat1.c: New testcase.
......
// { dg-do run { target fpic } }
// { dg-options "-O3 -fpic" }
struct CBase {
virtual void BaseFunc () {}
};
struct MMixin {
virtual void * MixinFunc (int, int) = 0;
};
struct CExample: CBase, public MMixin
{
void *MixinFunc (int arg, int arg2)
{
return this;
}
};
void *test (MMixin & anExample)
{
return anExample.MixinFunc (0, 0);
}
int main ()
{
CExample c;
return (test (c) != &c);
}
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