Source file test/fixedbugs/issue80896.go

     1  // errorcheck -std
     2  
     3  //go:build !(386 || arm || mips || mipsle)
     4  
     5  // Copyright 2026 The Go Authors. All rights reserved.
     6  // Use of this source code is governed by a BSD-style
     7  // license that can be found in the LICENSE file.
     8  
     9  package main
    10  
    11  const N = 2e6
    12  
    13  type Big = [4 * 3 * N * N]int
    14  
    15  func sink(x Big) {} // ERROR "stack frame too large"
    16  
    17  func h(x0, x1, x2 Big) { // ERROR "stack frame too large"
    18  	sink(x0)
    19  	sink(x1)
    20  	sink(x2)
    21  }
    22  

View as plain text