blob: 6cba9c8b1e52bec28a21b595311f16f94d4dd11a [file] [log] [blame]
Robert Griesemerc7bd61a2009-12-29 14:44:56 -08001// errchk $G -e $D/$F.go
2
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
Russ Cox1b1f39e2010-01-07 23:24:48 -08009import . "unsafe" // ERROR "not used"
Robert Griesemerc7bd61a2009-12-29 14:44:56 -080010
11func main() {
12 var x int
13 println(unsafe.Sizeof(x)) // ERROR "undefined"
14}
15
16/*
17After a '.' import, "unsafe" shouldn't be defined as
18an identifier. 6g complains correctly for imports other
19than "unsafe".
20*/