changeset 439:65e379ba36b8

*** empty log message ***
author kono
date Mon, 15 Nov 2004 20:58:58 +0900
parents 626d705471d5
children a531bbf572e3
files mc-codegen.c test/void_code.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mc-codegen.c	Mon Nov 15 20:33:30 2004 +0900
+++ b/mc-codegen.c	Mon Nov 15 20:58:58 2004 +0900
@@ -3423,7 +3423,6 @@
 	case GE:
 	    if (us) e=(((unsigned)e1)>=((unsigned)e2)); else e=(e1>=e2);
 	    break;
-	    e=(e1<=e2);break;
 	default: error(-1); return list2(CONST,0);
 	}
 	return list2(CONST,e);
--- a/test/void_code.c	Mon Nov 15 20:33:30 2004 +0900
+++ b/test/void_code.c	Mon Nov 15 20:58:58 2004 +0900
@@ -1,5 +1,6 @@
 main()
 {
+   int i;
    for(;;) {
       printf("aho\n");
       break;
@@ -17,5 +18,11 @@
 	printf("b\n");
         printf("b\n");
    }
+   if (0) 
+	printf("a\n");
+   else if (0 && i) {
+	printf("bi\n");
+        printf("bi\n");
+   }
    return 0;
 }