summary refs log tree commit diff stats
path: root/tests/accept/run/tnamedenumfields.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/tnamedenumfields.nim')
-rw-r--r--tests/accept/run/tnamedenumfields.nim17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/accept/run/tnamedenumfields.nim b/tests/accept/run/tnamedenumfields.nim
deleted file mode 100644
index 6012cf1eb..000000000
--- a/tests/accept/run/tnamedenumfields.nim
+++ /dev/null
@@ -1,17 +0,0 @@
-
-const
-  strValB = "my value B"
-
-type
-  TMyEnum = enum
-    valueA = (0, "my value A"),
-    valueB = strValB & "conc",
-    valueC,
-    valueD = (3, "abc"),
-    valueE = 4
-
-# trick the optimizer with a variable:
-var x = valueD
-echo valueA, ord(valueA), valueB, ord(valueB), valueC, valueD, ord(valueD), x
-
-