Russ Cox | 2a01d72 | 2010-01-26 23:13:22 -0800 | [diff] [blame] | 1 | // errchk $G -e $D/$F.go |
| 2 | |
| 3 | // Copyright 2010 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 | func main() { |
Ian Lance Taylor | db3ec4f | 2010-02-04 21:31:30 -0800 | [diff] [blame] | 10 | for x; y; z // ERROR "unexpected semicolon or newline before .?{.?|undefined" |
Russ Cox | 2a01d72 | 2010-01-26 23:13:22 -0800 | [diff] [blame] | 11 | { |
Ian Lance Taylor | db3ec4f | 2010-02-04 21:31:30 -0800 | [diff] [blame] | 12 | z // GCCGO_ERROR "undefined" |
Russ Cox | 2a01d72 | 2010-01-26 23:13:22 -0800 | [diff] [blame] | 13 | |
| 14 | |