summary refs log tree commit diff stats
path: root/tests/enum/tenumhole.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/enum/tenumhole.nim')
-rw-r--r--tests/enum/tenumhole.nim25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/enum/tenumhole.nim b/tests/enum/tenumhole.nim
deleted file mode 100644
index 68b82e283..000000000
--- a/tests/enum/tenumhole.nim
+++ /dev/null
@@ -1,25 +0,0 @@
-discard """
-  file: "tenumhole.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")
-
-# test the new "proc body can be an expr" feature:
-proc getValue: TMyEnum = valueD
-
-# trick the optimizer with a variable:
-var x = getValue()
-echo valueA, ord(valueA), valueB, ord(valueB), valueC, valueD, ord(valueD), x
-
-
-
-