diff --git a/test/bugs/bug163.go b/test/bugs/bug163.go new file mode 100644 index 0000000000..30d2cab5d4 --- /dev/null +++ b/test/bugs/bug163.go @@ -0,0 +1,13 @@ +// errchk $G $D/$F.go + +// Copyright 2009 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 "fmt" + +func main() { + 日本語 := 1; // Japanese ideographs are not letters +} diff --git a/test/golden.out b/test/golden.out index 0cce6f5f4b..60e6f6f566 100644 --- a/test/golden.out +++ b/test/golden.out @@ -101,6 +101,13 @@ xyz: expected 1 2 3 got 3 2 1 abc: expected 4 5 6 got -4 4 4 BUG: bug159 +=========== bugs/bug162.go +123 +BUG: should fail + +=========== bugs/bug163.go +BUG: should not compile + =========== fixedbugs/bug016.go fixedbugs/bug016.go:7: constant -3 overflows uint