From 820f223af94eee100877b362aa0a7f8cd5f25841 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 21 Jul 2008 15:41:39 -0700 Subject: [PATCH] compiler crash in string('a', 'b', '\n'); SVN=128253 --- test/bugs/bug074.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/bugs/bug074.go diff --git a/test/bugs/bug074.go b/test/bugs/bug074.go new file mode 100644 index 0000000000..947001cd42 --- /dev/null +++ b/test/bugs/bug074.go @@ -0,0 +1,12 @@ +// errchk $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 + +func main() { + x := string('a', 'b', '\n'); + print x; +} -- 2.48.1