Add c2mir-bootstrap-test0 entry.
@@ -221,6 +221,13 @@ c2mir-gen-test1: c2m
c2mir-gen-test3: c2m
$(SHELL) c-tests/runtests.sh c-tests/use-c2m-gen-O3
+c2mir-bootstrap-test0: c2m
+ $(Q) echo -n +++++++ C2MIR Bootstrap Test with -O0 '... '
+ $(Q) ./c2m -O0 -I. mir-gen.c c2mir/c2mir.c c2mir/c2mir-driver.c mir.c && mv a.bmir 1.bmir
+ $(Q) ./c2m -O0 -I. mir-gen.c c2mir/c2mir.c c2mir/c2mir-driver.c mir.c -el -O0 -I. mir-gen.c c2mir/c2mir.c c2mir/c2mir-driver.c mir.c
+ $(Q) cmp 1.bmir a.bmir && echo Passed || echo FAIL
+ $(Q) rm -rf 1.bmir a.bmir
+
c2mir-bootstrap-test: c2m
$(Q) echo -n +++++++ C2MIR Bootstrap Test with default optimize level '... '
$(Q) ./c2m -I. mir-gen.c c2mir/c2mir.c c2mir/c2mir-driver.c mir.c && mv a.bmir 1.bmir
