]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/misc/cgo/test/issue20369.go
function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P before testing...
[thirdparty/gcc.git] / libgo / misc / cgo / test / issue20369.go
CommitLineData
bc998d03
ILT
1// Copyright 2017 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
5package cgotest
6
7/*
8#define UINT64_MAX 18446744073709551615ULL
9*/
10import "C"
11import (
12 "math"
13 "testing"
14)
15
16func test20369(t *testing.T) {
17 if C.UINT64_MAX != math.MaxUint64 {
18 t.Fatalf("got %v, want %v", uint64(C.UINT64_MAX), uint64(math.MaxUint64))
19 }
20}