summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bench/loop_count-5.1-while_down_ne_localvar.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bench/loop_count-5.1-while_down_ne_localvar.py b/tests/bench/loop_count-5.1-while_down_ne_localvar.py
new file mode 100644
index 0000000000..96bdb9129f
--- /dev/null
+++ b/tests/bench/loop_count-5.1-while_down_ne_localvar.py
@@ -0,0 +1,8 @@
+import bench
+
+def test(num):
+ zero = 0
+ while num != zero:
+ num -= 1
+
+bench.run(test)