implement sizeof and alignof operator (manually squashed #5664) (#9356)

This commit is contained in:
Timothee Cour 2018-10-13 15:52:28 -07:00 • committed by Andreas Rumpf
commit 745f1642d6
18 changed files with 906 additions and 236 deletions

View file

@ -0,0 +1,12 @@
discard """
errormsg: "illegal recursion in type 'Foo'"
"""
type
Imported {.importc.} = object
Foo = object
b: Imported
a: Foo
var myFoo: Foo