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