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.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [array1.C] - Blame information for rev 519

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// { dg-options "" }
3
// Testcase for assignment of non-array to array (assigns the same value to
4
// each member)
5
// Special Options:
6
 
7
typedef struct {} ct2d_rigid, ct2d_rigid_a[1];
8
class ccInspection
9
{
10
protected:
11
  ct2d_rigid_a _dev2phys;
12
};
13
class ccBgaInspection : public ccInspection
14
{
15
public:
16
  void reinspect (unsigned long diagFlags);
17
};
18
void
19
ccBgaInspection::reinspect (unsigned long diag_flags)
20
{
21
  ct2d_rigid physTdev;
22
  _dev2phys = physTdev; // { dg-error "" }
23
}

powered by: WebSVN 2.1.0

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