parent
3ce27511ad
commit
3cbc80045d
3 changed files with 41 additions and 32 deletions
|
|
@ -1,15 +0,0 @@
|
|||
type
|
||||
TPassContext = object of RootObj
|
||||
PPassContext = ref TPassContext
|
||||
|
||||
PCtx = ref object of TPassContext
|
||||
a: int
|
||||
|
||||
ModuleGraph = object
|
||||
vm: RootRef
|
||||
|
||||
proc main() =
|
||||
var g = ModuleGraph(vm: new(Pctx))
|
||||
PCtx(g.vm) = nil #This generates invalid C code
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue