Commit 48a14663 authored by Robert Griesemer's avatar Robert Griesemer

test: add test case for issue #13248

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/16973Reviewed-by: 's avatarChris Manghane <cmang@golang.org>
parent 0133d24c
// 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 }"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment