Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
nilptr4.go25 linesDownload Raw Back to test
1// build2 3// Copyright 2014 The Go Authors. All rights reserved.4// Use of this source code is governed by a BSD-style5// license that can be found in the LICENSE file.6 7// Test that the compiler does not crash during compilation.8 9package main10 11import "unsafe"12 13// Issue 741314func f1() {15	type t struct {16		i int17	}18 19	var v *t20	_ = int(uintptr(unsafe.Pointer(&v.i)))21	_ = int32(uintptr(unsafe.Pointer(&v.i)))22}23 24func main() {}25 
codekingpro/portable-devtools · Team Ai