OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [other/] [vthunk1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/12007 Multiple inheritance float pass by value fails
2
// { dg-do run }
3
 
4
extern "C" void abort (void);
5
 
6
class gvImpl
7
{
8
public:
9
  virtual void PutVal(float value){}
10
};
11
 
12
class foo { public: virtual void Bar(){} };
13
 
14
class myGv: public foo, public gvImpl
15
{
16
  void PutVal(float value){ if (value != 3.14159f) abort (); }
17
};
18
 
19
myGv x;
20
gvImpl* object = &x;
21
 
22
int main()
23
{
24
  object->PutVal(3.14159f);
25
  return 0;
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.