shithub: scc

ref: a04925b020bd4f1a0bef424ddde7448d3bc5d670
dir: /tests/cc/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;
}