github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/misc/cgo/errors/issue13129.go (about)

     1  // Copyright 2015 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  // issue 13129: used to output error about C.unsignedshort with CC=clang
     6  
     7  package main
     8  
     9  import "C"
    10  
    11  func main() {
    12  	var x C.ushort
    13  	x = int(0) // ERROR HERE
    14  }