Source file test/abi/convT64_criteria.go

     1  // run
     2  
     3  // Copyright 2021 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  package main
     8  
     9  import (
    10  	"fmt"
    11  )
    12  
    13  type MyStruct struct {
    14  	F0 [0]float64
    15  	F1 byte
    16  	F2 int16
    17  	_  struct {
    18  		F0 uint32
    19  	}
    20  }
    21  
    22  func main() {
    23  	p0 := MyStruct{F0: [0]float64{}, F1: byte(27), F2: int16(9887)}
    24  	fmt.Println(p0)
    25  }
    26  

View as plain text