21 struct t1_t w0
= {"11", "22", "33", "44", {"55", "66"}};
22 const struct t1_t w1
= {"11", "22", "33", "44", {"55", "66"}};
24 const char p0
[] = {'1', '1', 0, 0, 0};
25 const char v0
[] = {'2', '2', 0, 0, 0};
26 const char p1
[] = {'3', '3', 0, 0, 0};
27 const char v1
[] = {'4', '4', 0, 0, 0};
28 const char p2
[] = {'5', '5', 0, 0, 0};
29 const char v2
[] = {'6', '6', 0, 0, 0};
33 ASSERT (strcmp (w0
.p0
, p0
) == 0);
34 ASSERT (strcmp (w0
.p1
, p1
) == 0);
35 ASSERT (strcmp (w0
.t
.p2
, p2
) == 0);
37 ASSERT (memcmp (w0
.v0
, v0
, sizeof (v0
)) == 0);
38 ASSERT (memcmp (w0
.v1
, v1
, sizeof (v1
)) == 0);
39 ASSERT (memcmp (w0
.t
.v2
, v2
, sizeof (v2
)) == 0);
41 ASSERT (strcmp (w1
.p0
, p0
) == 0);
42 ASSERT (strcmp (w1
.p1
, p1
) == 0);
43 ASSERT (strcmp (w1
.t
.p2
, p2
) == 0);
45 ASSERT (memcmp (w1
.v0
, v0
, sizeof (v0
)) == 0);
46 ASSERT (memcmp (w1
.v1
, v1
, sizeof (v1
)) == 0);
47 ASSERT (memcmp (w1
.t
.v2
, v2
, sizeof (v2
)) == 0);