t14160.nim 272 B

12345678910111213141516
  1. type
  2. TPassContext = object of RootObj
  3. PPassContext = ref TPassContext
  4. PCtx = ref object of TPassContext
  5. a: int
  6. ModuleGraph = object
  7. vm: RootRef
  8. proc main() =
  9. var g = ModuleGraph(vm: new(Pctx))
  10. PCtx(g.vm) = nil #This generates invalid C code
  11. main()