2008-06-11 11:33:20 -06:00
|
|
|
// $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 {
|
2008-06-11 11:33:20 -06:00
|
|
|
i int
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
2008-12-18 23:37:22 -07:00
|
|
|
var ta []*T;
|
2008-06-11 11:33:20 -06:00
|
|
|
|
2010-08-31 08:34:01 -06:00
|
|
|
ta = new([1]*T)[0:];
|
2008-06-11 11:33:20 -06:00
|
|
|
ta[0] = nil;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
bug045.go:13: fatal error: goc: exit 1
|
|
|
|
*/
|