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

Statement-expressions array output should be decayed to pointer #33

Closed fuhsnn closed 10 months ago

fuhsnn commented 10 months ago
#include <stdio.h>
int main(int argc, char** argv) {
    printf("%d\n", sizeof ({int j[17]; j;})); // expect pointer size
    printf("%d\n", sizeof ({int j[argc]; j;})); // expect pointer size
}