Source file src/cmd/cgo/internal/test/issue52611b/b.go

     1  // Copyright 2022 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package issue52611b
     6  
     7  /*
     8  typedef struct Bar {
     9      int X;
    10  } Bar;
    11  */
    12  import "C"
    13  
    14  func GetX2(bar *C.struct_Bar) int32 {
    15  	return int32(bar.X)
    16  }
    17  

View as plain text