]> Cypherpunks repositories - gostls13.git/commitdiff
test: add test case for issue #13248
authorRobert Griesemer <gri@golang.org>
Mon, 16 Nov 2015 20:40:45 +0000 (12:40 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Nov 2015 01:05:51 +0000 (01:05 +0000)
Issue #13248 was fixed by https://go-review.googlesource.com/#/c/16930/.
This is the corresponding test case (original offending program).

Change-Id: I7c99783db74a5422704409cea7e5073094beadd3
Reviewed-on: https://go-review.googlesource.com/16973
Reviewed-by: Chris Manghane <cmang@golang.org>
test/fixedbugs/issue13248.go [new file with mode: 0644]

diff --git a/test/fixedbugs/issue13248.go b/test/fixedbugs/issue13248.go
new file mode 100644 (file)
index 0000000..d01b823
--- /dev/null
@@ -0,0 +1,13 @@
+// errorcheck
+
+// Copyright 2015 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.
+
+// This program caused an infinite loop with the recursive-descent parser.
+
+package main
+
+func main() {
+    foo(
+} // ERROR "unexpected }"