diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-02 01:44:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-02 01:44:49 +0100 |
commit | 5bbcf6a723a45989e0a189a30e663a4d38b5f006 (patch) | |
tree | dc36dcb7af93742750ece63eeb615f2508d71d1a /test-files/mds-kbdc/eliminate-dead-code/alive-code/for-for-break-end-alive | |
parent | m (diff) | |
download | mds-5bbcf6a723a45989e0a189a30e663a4d38b5f006.tar.gz mds-5bbcf6a723a45989e0a189a30e663a4d38b5f006.tar.bz2 mds-5bbcf6a723a45989e0a189a30e663a4d38b5f006.tar.xz |
mds-kbdc: dead code elimination
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | test-files/mds-kbdc/eliminate-dead-code/alive-code/for-for-break-end-alive | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/eliminate-dead-code/alive-code/for-for-break-end-alive b/test-files/mds-kbdc/eliminate-dead-code/alive-code/for-for-break-end-alive new file mode 100644 index 0000000..6523352 --- /dev/null +++ b/test-files/mds-kbdc/eliminate-dead-code/alive-code/for-for-break-end-alive @@ -0,0 +1,25 @@ +for 1 to 2 as \1 + for 1 to 2 as \2 + break + end for + <alive> : "code" +end for + +# (for (@ 1 0-3) ‘1’ ‘2’ (.variable ‘\1’) +# (.inner +# (for (@ 2 2-5) ‘1’ ‘2’ (.variable ‘\2’) +# (.inner +# (break (@ 3 4-9)) +# ) +# ) +# (map (@ 5 2-2) +# (.sequence +# (keys (@ 5 2-9) ‘<alive>’) +# ) +# (.result +# (string (@ 5 12-18) ‘"code"’) +# ) +# ) +# ) +# ) + |