goplus / c2go

Convert C to Go
Apache License 2.0
307 stars 21 forks source link

panic: compileExpr: unknown kind = InitListExpr #160

Closed visualfc closed 1 year ago

visualfc commented 1 year ago

main.c

#include <stdio.h>

void test1(int *c)
{
    printf("%c\n",*c);
}

void test2(char *c)
{
    printf("%c\n",*c);
}

int main() {
    int c = 'a';
    test1(&(int){c});
    test2(&(char){c});
}

c2go main.c

panic: compileExpr: unknown kind = InitListExpr