summary refs log tree commit diff stats
path: root/tests/ccgbugs/tinefficient_const_table.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tinefficient_const_table.nim')
-rw-r--r--tests/ccgbugs/tinefficient_const_table.nim27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/ccgbugs/tinefficient_const_table.nim b/tests/ccgbugs/tinefficient_const_table.nim
deleted file mode 100644
index 7422d0676..000000000
--- a/tests/ccgbugs/tinefficient_const_table.nim
+++ /dev/null
@@ -1,27 +0,0 @@
-discard """
-  output: '''a
-long
-list
-of
-words'''
-  cmd: r"nim c --hints:on $options -d:release $file"
-  ccodecheck: "! @'genericSeqAssign'"
-  target: "c"
-"""
-
-# bug #4354
-import tables
-import sets
-import strutils
-
-#const FRUITS = ["banana", "apple", "grapes"]
-#let FRUITS = ["banana", "apple", "grapes"].toSet
-const FRUITS = {"banana":0, "apple":0, "grapes":0}.toTable
-
-proc main() =
-    let L = "a long list of words".split()
-    for word in L:
-        if word notin FRUITS:
-            echo(word)
-
-main()