0
1
mirror of https://github.com/golang/go synced 2025-07-15 21:44:47 +00:00
Files
go/test/fixedbugs/bug045.go

22 lines
400 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
export type T struct {
i int
}
func main() {
var ta []*T;
2009-01-06 15:19:02 -08:00
ta = *new([1]*T); // TODO: the first * shouldn't be necessary
ta[0] = nil;
}
/*
bug045.go:13: fatal error: goc: exit 1
*/