fuhsnn / slimcc

C11 compiler with GNU / C23 extensions for x86-64 Linux, able to build Python and PostgreSQL
MIT License
24 stars 3 forks source link

`_Generic` pointers to array of same size should be compatible #76

Closed fuhsnn closed 4 months ago

fuhsnn commented 4 months ago
int fn(int n, int(*arr1)[13], int(*arr2)[13]) {
    return _Generic(arr1, typeof(arr2):1); // expected 1
}