2012-04-26 02:57:23 -07:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 14:32:26 -07:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
2012-04-26 02:57:23 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Test that a syntax error caused by an unexpected EOF
|
|
|
|
// gives an error message with the correct line number.
|
|
|
|
//
|
2015-02-06 21:44:39 +09:00
|
|
|
// https://golang.org/issue/3392
|
2012-04-26 02:57:23 -07:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func foo() {
|
2013-07-30 10:27:08 -04:00
|
|
|
bar(1, // ERROR "unexpected|missing|undefined"
|