shithub: scc

ref: 0001a817076cbc01e7114c01a71fc1f70d6a4df5
dir: /tests/execute/0044-struct.c/

View raw version
struct s {
    int x;
    struct {
        int y;
        int z;
    } nest;
};

int
main() {
    struct s v;
    v.x = 1;
    v.nest.y = 2;
    v.nest.z = 3;
    if (v.x + v.nest.y + v.nest.z != 6)
        return 1;
    return 0;
}