summary refs log tree commit diff stats
path: root/tests/navigator/tincludefile.nim
blob: a913d0736e6e66628b94d668f245d80d9a8d2e9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
discard """
  disabled: true
  cmd: "nim check $options --defusages:$file,12,7 $file"
  nimout: '''def tincludefile_temp.nim(11, 10)
usage tincludefile_temp.nim(12, 8)
  '''
"""



proc foo(x: int) =
  echo x

foo(3)
echo "yes", 1 != 3

#!EDIT!#
discard """
  cmd: "nim check $options --defusages:$file/../minclude.nim,2,2 $file"
  nimout: '''def tincludefile_temp.nim(10, 6)
usage minclude.nim(2, 1)
  '''
"""


proc foo(x: int) =
  echo x

include minclude