]> Cypherpunks repositories - gostls13.git/commitdiff
compiler crash in string('a', 'b', '\n');
authorRob Pike <r@golang.org>
Mon, 21 Jul 2008 22:41:39 +0000 (15:41 -0700)
committerRob Pike <r@golang.org>
Mon, 21 Jul 2008 22:41:39 +0000 (15:41 -0700)
SVN=128253

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

diff --git a/test/bugs/bug074.go b/test/bugs/bug074.go
new file mode 100644 (file)
index 0000000..947001c
--- /dev/null
@@ -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;
+}