From 6c5fc055c804c4b2327e23f1a03f5ffec5ddbf91 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 18 Nov 2008 09:39:34 -0800 Subject: [PATCH] import syntax incorrect R=r OCL=19457 CL=19457 --- test/bugs/bug125.go | 15 +++++++++++++++ test/golden.out | 7 +++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 test/bugs/bug125.go diff --git a/test/bugs/bug125.go b/test/bugs/bug125.go new file mode 100644 index 0000000000..e2be1645bc --- /dev/null +++ b/test/bugs/bug125.go @@ -0,0 +1,15 @@ +// 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 ( + OS "os" // should require semicolon here; this is no different from other decls + IO "io" +) + +func main() { +} diff --git a/test/golden.out b/test/golden.out index 3e113a375b..efad87433d 100644 --- a/test/golden.out +++ b/test/golden.out @@ -125,7 +125,7 @@ BUG: errchk: command succeeded unexpectedly: 6g bugs/bug104.go =========== bugs/bug105.go bugs/bug105.go:8: P: undefined -bugs/bug105.go:8: illegal types for operand: RETURN +bugs/bug105.go:9: illegal types for operand: RETURN int BUG: should compile @@ -139,7 +139,7 @@ BUG: bug115 should compile =========== bugs/bug117.go bugs/bug117.go:9: undefined DOT get on PS -bugs/bug117.go:9: illegal types for operand: RETURN +bugs/bug117.go:10: illegal types for operand: RETURN int BUG: should compile @@ -169,6 +169,9 @@ BUG: errchk: command succeeded unexpectedly: 6g bugs/bug123.go =========== bugs/bug124.go BUG: errchk: command succeeded unexpectedly: 6g bugs/bug124.go +=========== bugs/bug125.go +BUG: errchk: command succeeded unexpectedly: 6g bugs/bug125.go + =========== fixedbugs/bug016.go fixedbugs/bug016.go:7: overflow converting constant to uint -- 2.50.0