summary refs log tree commit diff stats
path: root/tests/newconfig/tfoo.nim
blob: 0c6ded470fe6f1a52dda8cdbd3e25d2b5be0edd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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")