]> Cypherpunks repositories - gostls13.git/commitdiff
test: add test for gccgo comment lexing failure
authorIan Lance Taylor <iant@golang.org>
Tue, 8 Jul 2014 21:09:35 +0000 (14:09 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 Jul 2014 21:09:35 +0000 (14:09 -0700)
http://gcc.gnu.org/PR61746

http://code.google.com/p/gofrontend/issues/detail?id=35

LGTM=crawshaw
R=golang-codereviews, crawshaw
CC=golang-codereviews
https://golang.org/cl/111980043

test/fixedbugs/bug486.go [new file with mode: 0644]

diff --git a/test/fixedbugs/bug486.go b/test/fixedbugs/bug486.go
new file mode 100644 (file)
index 0000000..c1a4723
--- /dev/null
@@ -0,0 +1,14 @@
+// compile
+
+// Copyright 2014 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.
+
+// The gccgo lexer had a bug handling nested comments.
+// http://gcc.gnu.org/PR61746
+// http://code.google.com/p/gofrontend/issues/detail?id=35
+
+package main
+
+/*// comment
+*/