github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/misc/cgo/test/issue26066.go (about) 1 // Copyright 2018 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 // Wrong type of constant with GCC 8 and newer. 6 7 package cgotest 8 9 // const unsigned long long int issue26066 = (const unsigned long long) -1; 10 import "C" 11 12 import "testing" 13 14 func test26066(t *testing.T) { 15 var i = int64(C.issue26066) 16 if i != -1 { 17 t.Errorf("got %d, want -1", i) 18 } 19 }