diff options
author | Ken Thompson <ken@golang.org> | 2010-03-09 12:49:24 -0800 |
---|---|---|
committer | Ken Thompson <ken@golang.org> | 2010-03-09 12:49:24 -0800 |
commit | 455ac88b02f367fe89c6e47a7ab6cde3e17db37a (patch) | |
tree | 4e5f22c966654acdf90e8c3a69c56b0394bcfe65 /test/ken | |
parent | 01c36f84cc8bf59cd5ce3439176be4a4f62deef4 (diff) | |
download | go-455ac88b02f367fe89c6e47a7ab6cde3e17db37a.tar.gz |
identical complex implementation
for 6g and 8g. can also be used
for 5g. 5g is still a stub.
R=rsc
CC=golang-dev
http://codereview.appspot.com/362041
Diffstat (limited to 'test/ken')
-rw-r--r-- | test/ken/cplx0.go | 4 | ||||
-rw-r--r-- | test/ken/cplx1.go | 4 | ||||
-rw-r--r-- | test/ken/cplx2.go | 4 | ||||
-rw-r--r-- | test/ken/cplx3.go | 6 | ||||
-rw-r--r-- | test/ken/cplx4.go | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/test/ken/cplx0.go b/test/ken/cplx0.go index b9e783029..6e9bfd023 100644 --- a/test/ken/cplx0.go +++ b/test/ken/cplx0.go @@ -1,6 +1,6 @@ -// true +// $G $D/$F.go && $L $F.$A && ./$A.out -// Copyright 2009 The Go Authors. All rights reserved. +// Copyright 2010 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. diff --git a/test/ken/cplx1.go b/test/ken/cplx1.go index d2953fc26..379e2e10b 100644 --- a/test/ken/cplx1.go +++ b/test/ken/cplx1.go @@ -1,6 +1,6 @@ -// [ $GOARCH != amd64 ] || ($G $D/$F.go && $L $F.$A && ./$A.out) +// $G $D/$F.go && $L $F.$A && ./$A.out -// Copyright 2009 The Go Authors. All rights reserved. +// Copyright 2010 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. diff --git a/test/ken/cplx2.go b/test/ken/cplx2.go index 684cc6537..7d3e5d735 100644 --- a/test/ken/cplx2.go +++ b/test/ken/cplx2.go @@ -1,6 +1,6 @@ -// [ $GOARCH != amd64 ] || ($G $D/$F.go && $L $F.$A && ./$A.out) +// $G $D/$F.go && $L $F.$A && ./$A.out -// Copyright 2009 The Go Authors. All rights reserved. +// Copyright 2010 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. diff --git a/test/ken/cplx3.go b/test/ken/cplx3.go index f08e9def9..8d7964649 100644 --- a/test/ken/cplx3.go +++ b/test/ken/cplx3.go @@ -1,6 +1,6 @@ -// true +// $G $D/$F.go && $L $F.$A && ./$A.out -// Copyright 2009 The Go Authors. All rights reserved. +// Copyright 2010 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. @@ -20,7 +20,7 @@ var complexBits = reflect.Typeof(complex(0i)).Size() * 8 func main() { c0 := C1 - c0 = (c0+c0+c0) / (c0+c0) + c0 = (c0+c0+c0) / (c0+c0+3i) println(c0) c := *(*complex)(unsafe.Pointer(&c0)) diff --git a/test/ken/cplx4.go b/test/ken/cplx4.go index d29a1c80c..34577a21e 100644 --- a/test/ken/cplx4.go +++ b/test/ken/cplx4.go @@ -1,6 +1,6 @@ -// true +// $G $D/$F.go && $L $F.$A && ./$A.out -// Copyright 2009 The Go Authors. All rights reserved. +// Copyright 2010 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. |