mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-22 07:40:10 +08:00
avoid jumping into statement expression
This commit is contained in:
parent
6d66b5a971
commit
aee0da0b17
16
tcctest.c
16
tcctest.c
@ -1803,14 +1803,14 @@ void local_label_test(void)
|
|||||||
goto l1;
|
goto l1;
|
||||||
l2:
|
l2:
|
||||||
a = 1 + ({
|
a = 1 + ({
|
||||||
__label__ l1, l2, l3;
|
__label__ l1, l2, l3, l4;
|
||||||
goto l4;
|
|
||||||
l5:
|
|
||||||
printf("aa1\n");
|
|
||||||
goto l1;
|
goto l1;
|
||||||
|
l4:
|
||||||
|
printf("aa1\n");
|
||||||
|
goto l3;
|
||||||
l2:
|
l2:
|
||||||
printf("aa3\n");
|
printf("aa3\n");
|
||||||
goto l3;
|
goto l4;
|
||||||
l1:
|
l1:
|
||||||
printf("aa2\n");
|
printf("aa2\n");
|
||||||
goto l2;
|
goto l2;
|
||||||
@ -1819,12 +1819,12 @@ void local_label_test(void)
|
|||||||
});
|
});
|
||||||
printf("a=%d\n", a);
|
printf("a=%d\n", a);
|
||||||
return;
|
return;
|
||||||
l1:
|
l4:
|
||||||
printf("bb1\n");
|
printf("bb1\n");
|
||||||
goto l2;
|
goto l2;
|
||||||
l4:
|
l1:
|
||||||
printf("bb2\n");
|
printf("bb2\n");
|
||||||
goto l5;
|
goto l4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* inline assembler test */
|
/* inline assembler test */
|
||||||
|
Loading…
Reference in New Issue
Block a user