shithub: scc

ref: 4a695da3a6e31f002608accb745d4369fe7f0eaa
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;
}