c2go icon indicating copy to clipboard operation
c2go copied to clipboard

enum redeclared in this block bug

Open visualfc opened this issue 3 years ago • 0 comments

test demo a.c

#include <stdio.h>

enum {
    ONE,TWO
};

void test1() {
    printf("test1 %d\n",ONE);
}

b.c

#include <stdio.h>

enum {
   ONE,TWO
};

void test2()
{
    printf("test2 %d\n",TWO);
}

main.c

extern void test1();
extern void test2();

int main() {
    test1();
    test2();
}

c2go .

b.c.i:541:4: ONE redeclared in this block

visualfc avatar Nov 02 '22 13:11 visualfc