summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-29 19:23:16 +0200
committerhut <hut@lavabit.com>2010-04-29 19:23:37 +0200
commit5fab6bc0c6f26d01571dc38f1a6da07c9b7d93dc (patch)
tree3e0a4378c505ba19bf10f5484dbb96c5a2c82df9
parentd76fd5b7666cd1e7b9ff4eb51a822e1ab41fac28 (diff)
downloadranger-5fab6bc0c6f26d01571dc38f1a6da07c9b7d93dc.tar.gz
changed testdir to /usr/include
-rw-r--r--test/bm_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bm_loader.py b/test/bm_loader.py
index bdef3768..9ee61801 100644
--- a/test/bm_loader.py
+++ b/test/bm_loader.py
@@ -5,7 +5,7 @@ import os
 from ranger.shared import FileManagerAware, SettingsAware
 from test import Fake
 from os.path import realpath, join, dirname
-TESTDIR = realpath(join(dirname(__file__), 'testdir'))
+TESTDIR = realpath(join(dirname(__file__), '/usr/include'))
 
 def raw_load_content(self):
 	"""
{ color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Add the first 10 numbers, and return the result in the exit code.
#
# To run:
#   $ ./translate_mu apps/browse.mu
#   $ ./a.elf
# Expected result:
#   $ echo $?
#   55

fn main -> result/ebx: int {
  result <- copy 0
  var i/eax: int <- copy 1
  {
    compare i, 0xa
    break-if->
    result <- add i
    i <- increment
    loop
  }
}