summaryrefslogtreecommitdiff
path: root/test/sizeof.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sizeof.go')
-rw-r--r--test/sizeof.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/sizeof.go b/test/sizeof.go
deleted file mode 100644
index 544e4c52c..000000000
--- a/test/sizeof.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// $G $D/$F.go
-
-// Copyright 2011 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package main
-
-import "unsafe"
-
-type T struct {
- X int
-}
-
-var t T
-
-func isUintptr(uintptr) {}
-
-func main() {
- isUintptr(unsafe.Sizeof(t))
- isUintptr(unsafe.Alignof(t))
- isUintptr(unsafe.Offsetof(t.X))
-}