1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:50:25 -07:00
go/test/fixedbugs/bug045.go

22 lines
393 B
Go
Raw Normal View History

// $G $D/$F.go && $L $F.$A && ./$A.out
// 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.
package main
2009-01-20 15:40:40 -07:00
type T struct {
i int
}
func main() {
var ta []*T;
2009-01-06 16:19:02 -07:00
ta = *new([1]*T); // TODO: the first * shouldn't be necessary
ta[0] = nil;
}
/*
bug045.go:13: fatal error: goc: exit 1
*/