Source file test/fixedbugs/issue34395.go

     1  // run
     2  
     3  // Copyright 2019 The Go Authors.  All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Test that a binary with a large data section can load. This failed on wasm.
     8  
     9  package main
    10  
    11  var test = [100 * 1024 * 1024]byte{42}
    12  
    13  func main() {
    14  	if test[0] != 42 {
    15  		panic("bad")
    16  	}
    17  }
    18  

View as plain text