Hi,
I maybe very well not understanding something but it looks like a label
targetted by a goto, in a switch statement, gets missing: if I iterate
through the ast and emit all the stmt/expr/decls, then no label-type is
emitted.
#include <stdio.h>
void myfunc(int a)
{
switch(a) {
case 1:
printf("1\n");
goto my_label;
case 2:
break;
case 3:
my_label: // this label does not appear in the ast
printf("Hello, world!\n");
}
}
any ideas?
Folkert van Heusden