From 6426659db90ae3b4532a1e2ccb36150421591ede Mon Sep 17 00:00:00 2001 From: Rob Pike <r@golang.org> Date: Thu, 17 Jul 2008 11:15:11 -0700 Subject: [PATCH] update tests SVN=127826 --- test/{bugs => fixedbugs}/bug055.go | 0 test/{bugs => fixedbugs}/bug069.go | 4 +-- test/golden.out | 58 +++++++++++++++--------------- 3 files changed, 31 insertions(+), 31 deletions(-) rename test/{bugs => fixedbugs}/bug055.go (100%) rename test/{bugs => fixedbugs}/bug069.go (72%) diff --git a/test/bugs/bug055.go b/test/fixedbugs/bug055.go similarity index 100% rename from test/bugs/bug055.go rename to test/fixedbugs/bug055.go diff --git a/test/bugs/bug069.go b/test/fixedbugs/bug069.go similarity index 72% rename from test/bugs/bug069.go rename to test/fixedbugs/bug069.go index b33e4a4069..51e034d654 100644 --- a/test/bugs/bug069.go +++ b/test/fixedbugs/bug069.go @@ -11,8 +11,8 @@ func main(){ ok := false; i := 0; - i, ok = <c; // works + i, ok = <-c; // works ca := new([2]*chan int); - i, ok = <(ca[0]); // fails: c.go:11: bad shape across assignment - cr=1 cl=2 + i, ok = <-(ca[0]); // fails: c.go:11: bad shape across assignment - cr=1 cl=2 } diff --git a/test/golden.out b/test/golden.out index ef97daf5dc..37d76cdcae 100644 --- a/test/golden.out +++ b/test/golden.out @@ -116,6 +116,9 @@ abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz =========== chan/fifo.go +=========== chan/nonblock.go +PASS + =========== chan/sieve.go =========== bugs/bug010.go @@ -127,7 +130,6 @@ 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 @@ -186,17 +188,17 @@ bugs/bug048.go:7: illegal types for operand: CONV BUG: known to fail incorrectly =========== bugs/bug049.go -getu: main路.stringo: not defined +enqueue: main路.stringo: not defined BUG: link failure =========== bugs/bug052.go SIGSEGV: segmentation violation Faulting address: 0x1 -pc: 0x1349 +pc: 0x1346 -0x1349?zi - main路main(1, 0, 1606416456, ...) - main路main(0x1, 0x7fff5fbff848, 0x1, ...) +0x1346?zi + main路main(1, 0, 1606414968, ...) + main路main(0x1, 0x7fff5fbff278, 0x0, ...) BUG: incorrect code for division @@ -206,23 +208,19 @@ BUG: len should not be a keyword =========== bugs/bug054.go xxx -. CALL u(100) l(229) <Element>I{} -. . NAME-Vector_At G0 a(1) l(216) 111({},{}){} -. . AS u(1) l(229) -. . . INDREG a(1) l(229) v G0 *<Vector>{} -. . . DOTPTR u(1) l(229) *<Vector>{} -. . . . NAME-s G279 a(1) g(279) l(225) *<TStruct>{} -. . . . NAME-fields G0 a(1) l(222) -. . AS u(1) l(229) -. . . INDREG a(1) l(229) i G280 <int32>INT32 -. . . NAME-i G280 a(1) g(280) l(225) <int32>INT32 +. CALL u(100) l(286) <Element>I{} +. . NAME-Vector_At G0 a(1) l(273) 111({},{}){} +. . AS u(1) l(286) +. . . INDREG a(1) l(286) v G0 *<Vector>{} +. . . DOTPTR u(1) l(286) *<Vector>{} +. . . . NAME-s G349 a(1) g(349) l(282) *<TStruct>{} +. . . . NAME-fields G0 a(1) l(279) +. . AS u(1) l(286) +. . . INDREG a(1) l(286) i G350 <int32>INT32 +. . . NAME-i G350 a(1) g(350) l(282) <int32>INT32 bugs/bug054.go:25: fatal error: agen_inter i2s BUG: known to fail incorrectly -=========== bugs/bug055.go -bugs/bug055.go:15: fatal error: allocparams: out class -BUG: known to fail incorrectly - =========== bugs/bug057.go bugs/bug057.go:13: syntax error BUG: compilation should succeed @@ -259,23 +257,21 @@ BUG: compilation should succeed bugs/bug068.go:6: unknown escape sequence: ' BUG: compilation should succeed -=========== bugs/bug069.go -bugs/bug069.go:12: bad shape across assignment - cr=1 cl=2 - -BUG: compilation should succeed - =========== bugs/bug070.go outer loop top k 0 inner loop top i 0 do break outer loop top k 1 k not zero -panic on line 257 PC=0x1362 +panic on line 271 PC=0x1362 0x1362?zi - main路main(1, 0, 1606415440, ...) - main路main(0x1, 0x7fff5fbff450, 0x0, ...) + main路main(1, 0, 1606414960, ...) + main路main(0x1, 0x7fff5fbff270, 0x0, ...) BUG: crashes +=========== bugs/bug071.go +BUG: compiler crashes + =========== fixedbugs/bug000.go =========== fixedbugs/bug001.go @@ -334,7 +330,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(210) t=<T> nil +fixedbugs/bug037.go:6: fatal error: addvar: n=NAME-s G0 a(1) l(267) t=<T> nil =========== fixedbugs/bug038.go @@ -357,6 +353,8 @@ sys.6:1 fixedbugs/bug050.go:3: syntax error =========== fixedbugs/bug051.go fixedbugs/bug051.go:10: expression must be a constant +=========== fixedbugs/bug055.go + =========== fixedbugs/bug056.go =========== fixedbugs/bug058.go @@ -364,3 +362,5 @@ fixedbugs/bug051.go:10: expression must be a constant =========== fixedbugs/bug059.go =========== fixedbugs/bug065.go + +=========== fixedbugs/bug069.go -- 2.30.9