1
0
mirror of https://github.com/golang/go synced 2024-11-26 18:06:55 -07:00

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
This commit is contained in:
Ian Lance Taylor 2014-07-08 14:09:35 -07:00
parent b0589864dc
commit f2b59a3483

14
test/fixedbugs/bug486.go Normal file
View File

@ -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
*/