3 // Copyright 2011 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.
12 func foo(runtime.UintType, i int) { // ERROR "cannot declare name runtime.UintType|mixed named and unnamed|undefined identifier"
13 println(i, runtime.UintType) // GCCGO_ERROR "undefined identifier"
17 runtime.UintType := i // ERROR "cannot declare name runtime.UintType|non-name on left side|undefined identifier"
18 println(runtime.UintType) // GCCGO_ERROR "invalid use of type|undefined identifier"
22 main.i := 1 // ERROR "non-name main.i|non-name on left side"
23 println(main.i) // GCCGO_ERROR "no fields or methods"
27 var main.i // ERROR "unexpected [.]|expected type"
32 var foo.i int // ERROR "unexpected [.]|expected type"