]> Cypherpunks repositories - gostls13.git/commitdiff
- filed 6g crash bug
authorRobert Griesemer <gri@golang.org>
Mon, 14 Jul 2008 23:26:41 +0000 (16:26 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 14 Jul 2008 23:26:41 +0000 (16:26 -0700)
SVN=127093

test/bugs/bug066.go [new file with mode: 0644]

diff --git a/test/bugs/bug066.go b/test/bugs/bug066.go
new file mode 100644 (file)
index 0000000..792e265
--- /dev/null
@@ -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"];
+}