blob: 1dc67eae28e3523a8907ec361f6faf6465a27fe5 [file] [log] [blame]
begin [10]struct (int age, string name) persons;
for i to UPB persons
do age of persons[i] := 20 + i;
name of persons[i] := "x" * i
od;
for i to UPB name of persons
do assert ((age of persons)[i] = 20 + i);
assert ((name of persons)[i] = "x" * i)
od
end