diff options
author | Russ Cox <rsc@golang.org> | 2009-12-17 15:08:55 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-17 15:08:55 -0800 |
commit | 3f4fbc7d126a43a67234f173aa91c19ec79d204b (patch) | |
tree | 42b3ba8c410c89edf8ae25be26b0cc526162ed0e /test/fixedbugs/bug235.go | |
parent | c82f2c5536443652e50487b25c1391530c167a8e (diff) | |
download | go-3f4fbc7d126a43a67234f173aa91c19ec79d204b.tar.gz |
gc: fix compiler crash
R=ken2
CC=dho
http://codereview.appspot.com/179097
Diffstat (limited to 'test/fixedbugs/bug235.go')
-rw-r--r-- | test/fixedbugs/bug235.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/fixedbugs/bug235.go b/test/fixedbugs/bug235.go new file mode 100644 index 000000000..8cecd9d04 --- /dev/null +++ b/test/fixedbugs/bug235.go @@ -0,0 +1,17 @@ +// $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. + +// used to crash the compiler + +package main + +type T struct { + x [4]byte +} + +var p *T +var v = *p + |