diff options
Diffstat (limited to 'libgo/go/go/typechecker/testdata/test1.go')
-rw-r--r-- | libgo/go/go/typechecker/testdata/test1.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/go/go/typechecker/testdata/test1.go b/libgo/go/go/typechecker/testdata/test1.go new file mode 100644 index 000000000..b0808ee7a --- /dev/null +++ b/libgo/go/go/typechecker/testdata/test1.go @@ -0,0 +1,13 @@ +// Copyright 2010 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. + +// const and var declarations + +package P1 + +const ( + c1 /* ERROR "missing initializer" */ + c2 int = 0 + c3, c4 = 0 +) |