github.com/stingnevermore/go@v0.0.0-20180120041312-3810f5bfed72/misc/cgo/errors/src/issue13635.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 13635: used to output error about C.unsignedchar. 6 // This test tests all such types. 7 8 package pkg 9 10 import "C" 11 12 func main() { 13 var ( 14 _ C.uchar = "uc" // ERROR HERE: C\.uchar 15 _ C.schar = "sc" // ERROR HERE: C\.schar 16 _ C.ushort = "us" // ERROR HERE: C\.ushort 17 _ C.uint = "ui" // ERROR HERE: C\.uint 18 _ C.ulong = "ul" // ERROR HERE: C\.ulong 19 _ C.longlong = "ll" // ERROR HERE: C\.longlong 20 _ C.ulonglong = "ull" // ERROR HERE: C\.ulonglong 21 _ C.complexfloat = "cf" // ERROR HERE: C\.complexfloat 22 _ C.complexdouble = "cd" // ERROR HERE: C\.complexdouble 23 ) 24 }