aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-17 14:43:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-03-17 17:56:17 -0700
commitc998e415c680013d5a6fdeb2e13335ba8adb580a (patch)
tree69f82de2f53a85f8984a60b46ab7634194df5c6e /tests
parentc422f49120d0ef0304213abda37de66d3b26f4c0 (diff)
flip a non-existent else block in simplifyIfs, if adding such a block can help
Diffstat (limited to 'tests')
-rw-r--r--tests/test_other.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index 19d1790d..ded45112 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2652,3 +2652,16 @@ int main()
}
''', [3, 1, 1])
+ test(r'''
+ #include <stdio.h>
+ #include <stdlib.h>
+
+ int main(int argc, char *argv[]) {
+ if (getenv("A") || getenv("B")) {
+ printf("hello world\n");
+ }
+ printf("and that's that\n");
+ return 0;
+ }
+ ''', [3, 1, 1])
+