main.mx raw

   1  package main
   2  
   3  import (
   4  	"os"
   5  	"tests/regressions/should_compile/array_of_slices_layout/lib"
   6  )
   7  
   8  func main() {
   9  	// Termination: a batch program must still be stoppable, so the entry
  10  	// handles the channel the runtime closes on SIGINT/SIGTERM.
  11  	select {
  12  	case <-shutdown:
  13  		return
  14  	default:
  15  	}
  16  
  17  	h := lib.NewHolder()
  18  	msg := string(lib.Check(h))
  19  	if msg != "ok" {
  20  		println("FAIL: " | msg)
  21  		os.Exit(1)
  22  	}
  23  	println("ok")
  24  }
  25