mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-04 21:14:48 +00:00
15
tests/ccgbugs/t14160.nim
Normal file
15
tests/ccgbugs/t14160.nim
Normal file
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user