Fix #231 - const func type, comment in struct

This commit is contained in:
Ganesh Viswanathan 2020-06-23 11:42:50 -05:00
commit 7738063038
4 changed files with 92 additions and 10 deletions

View file

@ -333,6 +333,10 @@ checkPragmas(A22, pHeaderBy, istype = false)
var a22: A22
a22.f1 = addr a15.a2[0]
assert A23 is proc(): cstring {.cdecl.}
checkPragmas(A23, pHeaderImp & "cdecl")
var a23: A23
assert U1 is object
assert sizeof(U1) == sizeof(cfloat)
checkPragmas(U1, pHeaderBy & @["union"], istype = false)