1 // { dg-do run { target fpic } }
2 // { dg-options "-fPIC" }
3 // { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } }
4 // Test that non-variadic function calls using thunks and PIC work right.
9 A (const A& a): p (a.p) { }
14 virtual void BaseFunc();
19 virtual A MixinFunc(int arg, A arg2) = 0;
22 class CExample : public CBase, public MMixin {
24 A MixinFunc(int arg, A arg2);
27 void CBase::BaseFunc()
31 A CExample::MixinFunc(int arg, A arg2)
33 if (arg != 1 || arg2.p != 0)
38 void* test(MMixin& anExample)
40 return anExample.MixinFunc(1,A(0)).p;