From: Ian Lance Taylor Date: Tue, 8 Jul 2014 21:09:35 +0000 (-0700) Subject: test: add test for gccgo comment lexing failure X-Git-Tag: go1.4beta1~1145 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f2b59a3483e3d7638b55f4e01a20edac75890759;p=gostls13.git test: add test for gccgo comment lexing failure 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 --- diff --git a/test/fixedbugs/bug486.go b/test/fixedbugs/bug486.go new file mode 100644 index 0000000000..c1a4723f9d --- /dev/null +++ b/test/fixedbugs/bug486.go @@ -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 +*/