| // Copyright 2012 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. |
| // Issue 4468: go/defer calls may not be parenthesized. |
| go F // ERROR "must be function call" |
| defer F // ERROR "must be function call" |
| go (F) // ERROR "must be function call|must not be parenthesized" |
| defer (F) // ERROR "must be function call|must not be parenthesized" |
| go (F()) // ERROR "must be function call|must not be parenthesized" |
| defer (F()) // ERROR "must be function call|must not be parenthesized" |