Source file test/abi/convF_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 "fmt"
    10  
    11  type myStruct struct {
    12  	F0 [0]struct{}
    13  	F1 float32
    14  }
    15  
    16  type myStruct2 struct {
    17  	F0 [0]struct{}
    18  	F1 float32
    19  	F2 [0]struct{}
    20  }
    21  
    22  func main() {
    23  	x := myStruct{F1: -1.25}
    24  	fmt.Println(x)
    25  	x2 := myStruct2{F1: -7.97}
    26  	fmt.Println(x2)
    27  }
    28  

View as plain text