PR rtl-optimization/88470
[official-gcc.git] / libgo / misc / cgo / test / issue26066.go
blob21028e7479b5ada141af0a85b2c5c0f3e3f390d5
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.
5 // Wrong type of constant with GCC 8 and newer.
7 package cgotest
9 // const unsigned long long int issue26066 = (const unsigned long long) -1;
10 import "C"
12 import "testing"
14 func test26066(t *testing.T) {
15 var i = int64(C.issue26066)
16 if i != -1 {
17 t.Errorf("got %d, want -1", i)