Russ Cox | 3e98a40 | 2009-08-12 15:58:31 -0700 | [diff] [blame] | 1 | // errchk $G $D/$F.go |
| 2 | |
| 3 | // Copyright 2009 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | import "sort" |
| 10 | |
| 11 | func main() { |
Russ Cox | 20011bc | 2009-09-17 10:27:04 -0700 | [diff] [blame] | 12 | sort.Sort(nil); |
Russ Cox | 3e98a40 | 2009-08-12 15:58:31 -0700 | [diff] [blame] | 13 | var x int; |
Ian Lance Taylor | f7e4fc9 | 2009-08-17 17:40:52 -0700 | [diff] [blame] | 14 | sort(x); // ERROR "package" |
Russ Cox | 3e98a40 | 2009-08-12 15:58:31 -0700 | [diff] [blame] | 15 | } |