summary refs log tree commit diff stats
path: root/tests/run/tdumptree.nim
blob: 5299a94e3395370bdcd4e094f8606e069f12e5f7 (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
discard """
disabled: true
output: '''StmtList
  VarSection
    IdentDefs
      Ident !"x"
      nil
      Call
        DotExpr
          Ident !"foo"
          Ident !"create"
        IntLit 56'''
"""

# disabled; can't work as the output is done by the compiler

import macros

#emit("type\n  TFoo = object\n    bar: int")

#var f: TFoo
#f.bar = 5
#echo(f.bar)

dumpTree:
  var x = foo.create(56)