1
0
mirror of https://github.com/golang/go synced 2024-11-26 04:27:58 -07:00

test: reenable ... test

The gofmt bug in question seems to be fixed (at least gofmt doesn't
complain), so reenable the commented-out ... test.

Change-Id: Icbfe0511160210557894ec8eb9b206aa6133d486
Reviewed-on: https://go-review.googlesource.com/55030
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tobias Klauser 2017-08-11 14:00:08 +02:00 committed by Ian Lance Taylor
parent 0f19e24da7
commit 98031d8cd0

View File

@ -53,8 +53,7 @@ func bad(args ...int) {
_ = new(int...) // ERROR "[.][.][.]" _ = new(int...) // ERROR "[.][.][.]"
n := 10 n := 10
_ = make([]byte, n...) // ERROR "[.][.][.]" _ = make([]byte, n...) // ERROR "[.][.][.]"
// TODO(rsc): enable after gofmt bug is fixed _ = make([]byte, 10 ...) // ERROR "[.][.][.]"
// _ = make([]byte, 10 ...) // error "[.][.][.]"
var x int var x int
_ = unsafe.Pointer(&x...) // ERROR "[.][.][.]" _ = unsafe.Pointer(&x...) // ERROR "[.][.][.]"
_ = unsafe.Sizeof(x...) // ERROR "[.][.][.]" _ = unsafe.Sizeof(x...) // ERROR "[.][.][.]"