OSDN Git Service

new
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ext / array1.C
1 // Testcase for assignment of non-array to array (assigns the same value to
2 // each member)
3 // Build don't link:
4 // Special Options: 
5
6 typedef struct {} ct2d_rigid, ct2d_rigid_a[1];
7 class ccInspection
8 {
9 protected:
10   ct2d_rigid_a _dev2phys;        
11 };
12 class ccBgaInspection : public ccInspection
13 {
14 public:
15   int reinspect (unsigned long diagFlags);
16 };
17 int
18 ccBgaInspection::reinspect (unsigned long diag_flags) 
19 {
20   ct2d_rigid physTdev;           
21   _dev2phys = physTdev; // ERROR - 
22 }