summary refs log tree commit diff stats
path: root/tests/enum/tenumoffset.nim
diff options
context:
space:
mode:
authorMiran <narimiran@users.noreply.github.com>2018-10-13 14:58:31 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-13 14:58:31 +0200
commit3c9fcc4c30dd76becacaab67f2587d88490806b9 (patch)
tree6b79838f8699f0993ac36e89549df94c0bbf7cd6 /tests/enum/tenumoffset.nim
parentef820769a47722cd33935dd94642aca9ecc09a8b (diff)
downloadNim-3c9fcc4c30dd76becacaab67f2587d88490806b9.tar.gz
Merge tests into a larger file (part 2 of ∞) (#9335)
* merge controlflow tests

* merge distinct tests

* merge enum tests

* merge fields tests

* merge implicit tests

* merge iter issues tests
Diffstat (limited to 'tests/enum/tenumoffset.nim')
-rw-r--r--tests/enum/tenumoffset.nim20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/enum/tenumoffset.nim b/tests/enum/tenumoffset.nim
deleted file mode 100644
index e67164604..000000000
--- a/tests/enum/tenumoffset.nim
+++ /dev/null
@@ -1,20 +0,0 @@
-discard """
-  file: "tenumoffset.nim"
-  output: "my value A1my value Bconc2valueCabc4abc"
-"""
-
-const
-  strValB = "my value B"
-
-type
-  TMyEnum = enum
-    valueA = (1, "my value A"),
-    valueB = strValB & "conc",
-    valueC,
-    valueD = (4, "abc")
-
-proc getValue(i:int): TMyEnum = TMyEnum(i)
-
-# trick the optimizer with a variable:
-var x = getValue(4)
-echo getValue(1), ord(valueA), getValue(2), ord(valueB), getValue(3), getValue(4), ord(valueD), x