fork download
  1. package main
  2.  
  3. type T struct {
  4. msg string
  5. }
  6.  
  7. var g *T
  8.  
  9. func setup() {
  10. t := new(T)
  11. t.msg = "hello, world"
  12. g = t
  13. }
  14.  
  15. func main() {
  16. go setup()
  17. for g == nil {
  18. }
  19. print(g.msg)
  20. }
  21.  
Time limit exceeded #stdin #stdout 5s 420352KB
stdin
Standard input is empty
stdout
Standard output is empty