// RUN: moore %s -e foo -O0
module foo;
struct packed {
byte a;
int b;
struct packed {
shortint x;
longint y;
} c;
} p;
int [3:0] q;
initial begin
p = '{c: '{y: 9001, x: 1337}, a: 1, b: 42};
// CHECK: %1 = const i8 1
// CHECK: %2 = const i32 42
// CHECK: %3 = const i16 1337
// CHECK: %4 = const i64 9001
q = '{0: 1, 3: 4, 1: 2, 2: 3};
// CHECK: %8 = const i32 1
// CHECK: %9 = const i32 2
// CHECK: %10 = const i32 3
// CHECK: %11 = const i32 4
end
endmodule