fuhsnn / slimcc

C11 compiler with GNU extensions for x86-64 Linux, working towards C23
MIT License
39 stars 6 forks source link

`_Generic` pointers to VLA and array should be compatible #75

Closed fuhsnn closed 6 months ago

fuhsnn commented 6 months ago
int fn(int n, int(*arr)[]) {
    int vla[n];
    return _Generic(&vla, typeof(arr):1); // expected 1
}