From acaba18bba553e83e02db18c57f41f96db696cb3 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 15 Jun 2009 21:13:28 -0700 Subject: [PATCH] bug163: ideographs are not letters also update golden.out from bug162 R=rsc DELTA=16 (16 added, 0 deleted, 0 changed) OCL=30298 CL=30324 --- test/bugs/bug163.go | 13 +++++++++++++ test/golden.out | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 test/bugs/bug163.go diff --git a/test/bugs/bug163.go b/test/bugs/bug163.go new file mode 100644 index 00000000000..30d2cab5d44 --- /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 0cce6f5f4b7..60e6f6f566e 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