2016-08-16 17:33:05 -06:00
|
|
|
// errorcheck
|
2015-10-04 14:33:02 -06:00
|
|
|
|
|
|
|
// Copyright 2015 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.
|
|
|
|
|
|
|
|
// Test an internal compiler error on ? symbol in declaration
|
|
|
|
// following an empty import.
|
|
|
|
|
|
|
|
package a
|
|
|
|
import"" // ERROR "import path is empty"
|
2016-02-23 00:07:30 -07:00
|
|
|
var? // ERROR "illegal character U\+003F '\?'"
|
2015-10-04 14:33:02 -06:00
|
|
|
|
2016-08-16 17:33:05 -06:00
|
|
|
var x int // ERROR "unexpected var"
|
2015-10-04 14:33:02 -06:00
|
|
|
|
|
|
|
func main() {
|
|
|
|
}
|