aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/87_dead_code.expect
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-09-19 18:38:12 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:12 +0100
commit31c7ea0165882eaf09040ea7edfc37cc38f0a032 (patch)
treed1dad07537700b756d612c68b414d243202a9529 /tests/tests2/87_dead_code.expect
parentb303a00ce01876dfa2ba3fe532db04d200168b9d (diff)
downloadtinycc-31c7ea0165882eaf09040ea7edfc37cc38f0a032.tar.gz
tinycc-31c7ea0165882eaf09040ea7edfc37cc38f0a032.tar.bz2
opt: Start optimizing dead code a bit
If a condition is always zero/non-zero we can omit the then or else code. This is complicated a bit by having to deal with labels that might make such code reachable without us yet knowing during parsing.
Diffstat (limited to 'tests/tests2/87_dead_code.expect')
-rw-r--r--tests/tests2/87_dead_code.expect18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tests2/87_dead_code.expect b/tests/tests2/87_dead_code.expect
new file mode 100644
index 0000000..0b3ec1d
--- /dev/null
+++ b/tests/tests2/87_dead_code.expect
@@ -0,0 +1,18 @@
+timeout=2
+timeout=1
+boo
+yeah
+twice
+once
+twice
+SEtwice
+SEonce
+SEtwice
+twice2
+once2
+twice2
+twice3
+once3
+twice3
+caseok
+caseok2