some tests cleaned up; some bugfixes
This commit is contained in:
parent
c96aaecfb4
commit
fc6cc79273
18 changed files with 106 additions and 69 deletions
|
|
@ -3,21 +3,21 @@ discard """
|
|||
line: 25
|
||||
errormsg: "internal error: cannot generate C type for: PA"
|
||||
"""
|
||||
# Test recursive type descriptions
|
||||
# (mainly for the C code generator)
|
||||
|
||||
type
|
||||
PA = ref TA
|
||||
TA = array [0..2, PA]
|
||||
|
||||
PRec = ref TRec
|
||||
TRec {.final.} = object
|
||||
a, b: TA
|
||||
|
||||
P1 = ref T1
|
||||
PB = ref TB
|
||||
TB = array [0..3, P1]
|
||||
T1 = array [0..6, PB]
|
||||
# Test recursive type descriptions
|
||||
# (mainly for the C code generator)
|
||||
|
||||
type
|
||||
PA = ref TA
|
||||
TA = array [0..2, PA]
|
||||
|
||||
PRec = ref TRec
|
||||
TRec {.final.} = object
|
||||
a, b: TA
|
||||
|
||||
P1 = ref T1
|
||||
PB = ref TB
|
||||
TB = array [0..3, P1]
|
||||
T1 = array [0..6, PB]
|
||||
|
||||
var
|
||||
x: PA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue