From 6bff372594a0c9c30f3bc2a14a551b2600db0066 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sun, 27 Jul 2008 13:50:54 -0700 Subject: [PATCH] update tests R=ken OCL=13507 CL=13507 --- test/bugs/bug034.go | 12 -------- test/{bugs => fixedbugs}/bug025.go | 2 +- test/{bugs => fixedbugs}/bug052.go | 0 test/{bugs => fixedbugs}/bug063.go | 0 test/golden.out | 44 ++++++++++-------------------- 5 files changed, 15 insertions(+), 43 deletions(-) delete mode 100644 test/bugs/bug034.go rename test/{bugs => fixedbugs}/bug025.go (74%) rename test/{bugs => fixedbugs}/bug052.go (100%) rename test/{bugs => fixedbugs}/bug063.go (100%) diff --git a/test/bugs/bug034.go b/test/bugs/bug034.go deleted file mode 100644 index fabd5c4816..0000000000 --- a/test/bugs/bug034.go +++ /dev/null @@ -1,12 +0,0 @@ -// 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. - -// $G $D/$F.go && echo BUG: compilation succeeds incorrectly - -package main - -type Item interface { - Print_BUG func(); // BUG no func allowed -} - diff --git a/test/bugs/bug025.go b/test/fixedbugs/bug025.go similarity index 74% rename from test/bugs/bug025.go rename to test/fixedbugs/bug025.go index df1c1a7773..f8aa68d5dd 100644 --- a/test/bugs/bug025.go +++ b/test/fixedbugs/bug025.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// $G $D/$F.go && echo BUG: bad exit status - should be 1 - plus extra newline in message +// ! $G $D/$F.go package main diff --git a/test/bugs/bug052.go b/test/fixedbugs/bug052.go similarity index 100% rename from test/bugs/bug052.go rename to test/fixedbugs/bug052.go diff --git a/test/bugs/bug063.go b/test/fixedbugs/bug063.go similarity index 100% rename from test/bugs/bug063.go rename to test/fixedbugs/bug063.go diff --git a/test/golden.out b/test/golden.out index 28e40a187f..3f86de1a19 100644 --- a/test/golden.out +++ b/test/golden.out @@ -130,10 +130,6 @@ BUG: known to fail incorrectly =========== bugs/bug015.go BUG: known to succeed incorrectly -=========== bugs/bug025.go -bugs/bug025.go:7: variable exported but not defined: Foo -BUG: bad exit status - should be 1 - plus extra newline in message - =========== bugs/bug026.go sys·printstring: main·sigs_I: not defined BUG: known to fail incorrectly @@ -156,9 +152,6 @@ BUG: compilation succeeds incorrectly =========== bugs/bug033.go BUG: compilation succeeds incorrectly -=========== bugs/bug034.go -BUG: compilation succeeds incorrectly - =========== bugs/bug041.go BUG: compilation succeeds incorrectly @@ -189,29 +182,16 @@ bugs/bug048.go:7: illegal types for operand: CONV (MAP[INT32]INT32) BUG: known to fail incorrectly -=========== bugs/bug052.go - =========== bugs/bug053.go bugs/bug053.go:6: syntax error BUG: len should not be a keyword =========== bugs/bug054.go -xxx -. CALL u(100) l(286) I{} -. . NAME-Vector_At G0 a(1) l(273) 111({},{}){} -. . AS u(1) l(286) -. . . INDREG a(1) l(286) v G0 *{} -. . . DOTPTR u(1) l(286) *{} -. . . . NAME-s G349 a(1) g(349) l(282) *{} -. . . . NAME-fields G0 a(1) l(279) -. . AS u(1) l(286) -. . . INDREG a(1) l(286) i G350 INT32 -. . . NAME-i G350 a(1) g(350) l(282) INT32 bugs/bug054.go:25: fatal error: agen_inter i2s BUG: known to fail incorrectly =========== bugs/bug057.go -bugs/bug057.go:13: syntax error +bugs/bug057.go:14: syntax error BUG: compilation should succeed =========== bugs/bug060.go @@ -226,11 +206,6 @@ BUG: known to fail incorrectly =========== bugs/bug062.go BUG: known to succeed incorrectly -=========== bugs/bug063.go -bugs/bug063.go:5: illegal combination of literals XOR 7 -bugs/bug063.go:5: expression must be a constant -BUG: should compile without problems - =========== bugs/bug064.go bugs/bug064.go:15: illegal types for operand: CALL (INT32) @@ -247,10 +222,10 @@ inner loop top i 0 do break outer loop top k 1 k not zero -panic on line 271 PC=0x1362 +panic on line 305 PC=0x1362 0x1362?zi - main·main(1, 0, 1606416424, ...) - main·main(0x1, 0x7fff5fbff828, 0x0, ...) + main·main(1, 0, 1606415392, ...) + main·main(0x1, 0x7fff5fbff420, 0x0, ...) BUG: crashes =========== bugs/bug072.go @@ -272,6 +247,8 @@ BUG: known to fail incorrectly =========== bugs/bug077.go BUG: known to succeed incorrectly +=========== bugs/bug078.go + =========== fixedbugs/bug000.go =========== fixedbugs/bug001.go @@ -314,6 +291,9 @@ BUG: known to succeed incorrectly =========== fixedbugs/bug024.go +=========== fixedbugs/bug025.go +fixedbugs/bug025.go:7: variable exported but not defined: Foo + =========== fixedbugs/bug028.go =========== fixedbugs/bug030.go @@ -330,7 +310,7 @@ fixedbugs/bug035.go:7: var f redeclared in this block =========== fixedbugs/bug037.go fixedbugs/bug037.go:6: vlong: undefined -fixedbugs/bug037.go:6: fatal error: addvar: n=NAME-s G0 a(1) l(267) t= nil +fixedbugs/bug037.go:6: fatal error: addvar: n=NAME-s G0 a(1) l(301) t= nil =========== fixedbugs/bug038.go @@ -355,6 +335,8 @@ sys.6:1 fixedbugs/bug050.go:3: syntax error =========== fixedbugs/bug051.go fixedbugs/bug051.go:10: expression must be a constant +=========== fixedbugs/bug052.go + =========== fixedbugs/bug055.go =========== fixedbugs/bug056.go @@ -363,6 +345,8 @@ fixedbugs/bug051.go:10: expression must be a constant =========== fixedbugs/bug059.go +=========== fixedbugs/bug063.go + =========== fixedbugs/bug065.go =========== fixedbugs/bug066.go -- 2.48.1