| /* | |
| :name: structure-replication | |
| :description: Structure replication assignment tests | |
| :should_fail: 0 | |
| :tags: 5.10 | |
| */ | |
| module top(); | |
| struct {int X,Y,Z;} XYZ = '{3{1}}; | |
| typedef struct {int a,b[4];} ab_t; | |
| int a,b,c; | |
| initial begin | |
| ab_t v1[1:0] [2:0]; | |
| v1 = '{2{'{3{'{a,'{2{b,c}}}}}}}; | |
| end | |
| endmodule |