summary refs log tree commit diff stats
path: root/tests/newconfig/tfoo.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/newconfig/tfoo.nim')
-rw-r--r--tests/newconfig/tfoo.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/newconfig/tfoo.nim b/tests/newconfig/tfoo.nim
new file mode 100644
index 000000000..0c6ded470
--- /dev/null
+++ b/tests/newconfig/tfoo.nim
@@ -0,0 +1,13 @@
+discard """
+  cmd: "nim default --hint:cc:off --hint:cc $file"
+  output: '''hello world! 0.5 true'''
+  nimout: '''[NimScript] exec: gcc -v'''
+"""
+
+when not defined(definedefine):
+  {.fatal: "wrong nim script configuration".}
+
+import math, mfriends
+
+discard gen[int]()
+echo "hello world! ", ln 2.0, " ", compileOption("opt", "speed")