]> Cypherpunks repositories - gostls13.git/commit
6g currently accepts setting a string value to an integer
authorIan Lance Taylor <iant@golang.org>
Thu, 25 Sep 2008 22:08:52 +0000 (15:08 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 25 Sep 2008 22:08:52 +0000 (15:08 -0700)
commitb70d42f323b7d632afac28b6dd4475014e404ba8
tree6678f25da0bf97c2d1a3118b960ebba2958a0608
parentc51195386e7dc5e0c8550ef1e7cb254aaa9b538e
6g currently accepts setting a string value to an integer
constant without an explicit conversion.  I think that is a
bug.  This adds a test case for it.

Also, change errchk to include the string BUG in error
messages, so that failures are included in the count reported
by the run shell script.

R=r,ken
DELTA=11  (7 added, 0 deleted, 4 changed)
OCL=15857
CL=15880
test/bugs/bug104.go [new file with mode: 0644]
test/errchk
test/golden.out