summary refs log tree commit diff stats
path: root/tests/constr/tnocompiletimefunc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/constr/tnocompiletimefunc.nim')
-rw-r--r--tests/constr/tnocompiletimefunc.nim14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/constr/tnocompiletimefunc.nim b/tests/constr/tnocompiletimefunc.nim
deleted file mode 100644
index a95648c0f..000000000
--- a/tests/constr/tnocompiletimefunc.nim
+++ /dev/null
@@ -1,14 +0,0 @@
-discard """
-  errormsg: "request to generate code for .compileTime proc: foo"
-"""
-
-# ensure compileTime funcs can't be called from runtime
-
-func foo(a: int): int {.compileTime.} =
-  a * a
-
-proc doAThing(): int =
-  for i in 0..2:
-    result += foo(i)
-
-echo doAThing()