aboutsummaryrefslogtreecommitdiff
path: root/tcctest.c
diff options
context:
space:
mode:
authorbellard <bellard>2005-09-04 09:27:53 +0000
committerbellard <bellard>2005-09-04 09:27:53 +0000
commitaee0da0b1760677a8d902186ba49ec1f647af99e (patch)
tree65874c2629b5b86110dba648f12c30bd0f2d1446 /tcctest.c
parent6d66b5a9711ad2840037deac8875320e49aa0c32 (diff)
downloadtinycc-aee0da0b1760677a8d902186ba49ec1f647af99e.tar.gz
tinycc-aee0da0b1760677a8d902186ba49ec1f647af99e.tar.bz2
avoid jumping into statement expression
Diffstat (limited to 'tcctest.c')
-rw-r--r--tcctest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tcctest.c b/tcctest.c
index 70f2d9b..6f0e6a1 100644
--- a/tcctest.c
+++ b/tcctest.c
@@ -1803,14 +1803,14 @@ void local_label_test(void)
goto l1;
l2:
a = 1 + ({
- __label__ l1, l2, l3;
- goto l4;
- l5:
- printf("aa1\n");
+ __label__ l1, l2, l3, l4;
goto l1;
+ l4:
+ printf("aa1\n");
+ goto l3;
l2:
printf("aa3\n");
- goto l3;
+ goto l4;
l1:
printf("aa2\n");
goto l2;
@@ -1819,12 +1819,12 @@ void local_label_test(void)
});
printf("a=%d\n", a);
return;
- l1:
+ l4:
printf("bb1\n");
goto l2;
- l4:
+ l1:
printf("bb2\n");
- goto l5;
+ goto l4;
}
/* inline assembler test */