summary refs log tree commit diff stats
path: root/tests/compile/tlinearscanend.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tlinearscanend.nim')
-rw-r--r--tests/compile/tlinearscanend.nim24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/compile/tlinearscanend.nim b/tests/compile/tlinearscanend.nim
deleted file mode 100644
index 15fd0c70a..000000000
--- a/tests/compile/tlinearscanend.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-
-import strutils
-
-var x = 343
-
-case stdin.readline.parseInt
-of 0: 
-  echo "most common case"
-of 1: 
-  {.linearScanEnd.}
-  echo "second most common case"
-of 2: echo "unlikely: use branch table"
-else: 
-  echo "unlikely too: use branch table"
-
-
-case x
-of 23: echo "23"
-of 343: echo "343"
-of 21: echo "21"
-else: 
-  {.linearScanEnd.}
-  echo "default"
-