Home | History | Annotate | Download | only in errors
      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
     15 		_ C.schar         = "sc"  // ERROR HERE
     16 		_ C.ushort        = "us"  // ERROR HERE
     17 		_ C.uint          = "ui"  // ERROR HERE
     18 		_ C.ulong         = "ul"  // ERROR HERE
     19 		_ C.longlong      = "ll"  // ERROR HERE
     20 		_ C.ulonglong     = "ull" // ERROR HERE
     21 		_ C.complexfloat  = "cf"  // ERROR HERE
     22 		_ C.complexdouble = "cd"  // ERROR HERE
     23 	)
     24 }
     25