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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [init/] [array3.C] - Blame information for rev 779

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/6331
2
// Bug: we were generating a badly cv-qualified ARRAY_TYPE in the
3
// synthesized copy constructor for A, which then became the canonical
4
// version, confusing later uses.
5
 
6
struct A {
7
  virtual ~A();
8
  const float* f();
9
  float fa[3];
10
};
11
 
12
struct B {
13
  B(const A& ai) : a (ai) {}
14
  A a;
15
};
16
 
17
void g (const float pos[3]);
18
 
19
extern A& a;
20
void h()
21
{
22
  g (a.f());
23
}

powered by: WebSVN 2.1.0

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