* tree-vect-loop-manip.c (vect_do_peeling): Do not use
[official-gcc.git] / libgo / misc / cgo / test / issue7665.go
blobce0345845f9440f2244301d56992eba906b033af
1 // Copyright 2013 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 package cgotest
7 import (
8 "testing"
9 "unsafe"
12 // extern void f7665(void);
13 import "C"
15 //export f7665
16 func f7665() {}
18 var bad7665 unsafe.Pointer = C.f7665
19 var good7665 uintptr = uintptr(C.f7665)
21 func test7665(t *testing.T) {
22 if bad7665 == nil || uintptr(bad7665) != good7665 {
23 t.Errorf("ptrs = %p, %#x, want same non-nil pointer", bad7665, good7665)