2012-04-26 03:57:23 -06:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
2012-04-26 03:57:23 -06: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 05:44:39 -07:00
|
|
|
// https://golang.org/issue/3392
|
2012-04-26 03:57:23 -06:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func foo() {
|
2013-07-30 08:27:08 -06:00
|
|
|
bar(1, // ERROR "unexpected|missing|undefined"
|