blob: 539608ad6320192be358170093f84cf73336fc7c (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
discard """
cmd: '''nim c --hint:Processing:off $file'''
nimout: '''
tunused_imports.nim(14, 10) Warning: BEGIN [User]
tunused_imports.nim(41, 10) Warning: END [User]
tunused_imports.nim(37, 8) Warning: imported and not used: 'strutils' [UnusedImport]
tunused_imports.nim(38, 13) Warning: imported and not used: 'strtabs' [UnusedImport]
tunused_imports.nim(38, 22) Warning: imported and not used: 'cstrutils' [UnusedImport]
tunused_imports.nim(39, 12) Warning: imported and not used: 'macrocache' [UnusedImport]
'''
action: "compile"
"""
{.warning: "BEGIN".}
# bug #12885
import tables, second
template test(key: int): untyped =
`[]`(dataEx, key)
echo test(1)
import net, dontmentionme
echo AF_UNIX
import macros
# bug #11809
macro bar(): untyped =
template baz() = discard
result = getAst(baz())
bar()
import strutils
import std/[strtabs, cstrutils]
import std/macrocache
{.warning: "END".}
|