c2go
c2go copied to clipboard
enum redeclared in this block bug
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