Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ext/array1.C

raw
1 // { 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 "13:incompatible types in assignment" }
23 }