From 08b5993b8e8146c60fdb26e9a564feea39890aee Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 14 Jul 2008 16:26:41 -0700 Subject: [PATCH] - filed 6g crash bug SVN=127093 --- test/bugs/bug066.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/bugs/bug066.go diff --git a/test/bugs/bug066.go b/test/bugs/bug066.go new file mode 100644 index 0000000000..792e265f60 --- /dev/null +++ b/test/bugs/bug066.go @@ -0,0 +1,27 @@ +// $G $D/$F.go + +// 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 + + +type Scope struct { + entries *map[string] *Object; +} + + +type Type struct { + scope *Scope; +} + + +type Object struct { + typ *Type; +} + + +func Lookup(scope *Scope) *Object { + return scope.entries["foo"]; +} -- 2.48.1