2012-02-17 04:48:57 +00:00
|
|
|
// run
|
2008-06-11 17:33:20 +00:00
|
|
|
|
|
|
|
// 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 22:40:40 +00:00
|
|
|
type T struct {
|
2008-06-11 17:33:20 +00:00
|
|
|
i int
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
2008-12-19 06:37:22 +00:00
|
|
|
var ta []*T;
|
2008-06-11 17:33:20 +00:00
|
|
|
|
2010-08-31 14:34:01 +00:00
|
|
|
ta = new([1]*T)[0:];
|
2008-06-11 17:33:20 +00:00
|
|
|
ta[0] = nil;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
bug045.go:13: fatal error: goc: exit 1
|
|
|
|
*/
|