summary refs log tree commit diff stats
path: root/tests/misc/tsizeof2.nim
blob: 67379871d0797ce0601b0030e42ad662a6464015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
discard """
errormsg: "cannot evaluate 'sizeof/alignof' because its type is not defined completely"
line: 9
"""

type
  MyStruct {.importc: "MyStruct".} = object

const i = sizeof(MyStruct)

echo i