diff options
Diffstat (limited to 'src/pkg/go')
-rw-r--r-- | src/pkg/go/printer/testdata/declarations.go | 28 | ||||
-rw-r--r-- | src/pkg/go/printer/testdata/declarations.golden | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/src/pkg/go/printer/testdata/declarations.go b/src/pkg/go/printer/testdata/declarations.go new file mode 100644 index 000000000..309caf3b6 --- /dev/null +++ b/src/pkg/go/printer/testdata/declarations.go @@ -0,0 +1,28 @@ +// Copyright 2009 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. + +package imports + +import "io" + +import ( + a "io" +) + +import a "io" + +import ( + "io"; + "io"; + "io"; +) + +import ( + "io"; + aLongRename "io"; + b "io"; + c "i" "o"; +) + +// TODO(gri) add more test cases diff --git a/src/pkg/go/printer/testdata/declarations.golden b/src/pkg/go/printer/testdata/declarations.golden new file mode 100644 index 000000000..21c3c2b93 --- /dev/null +++ b/src/pkg/go/printer/testdata/declarations.golden @@ -0,0 +1,28 @@ +// Copyright 2009 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. + +package imports + +import "io" + +import ( + a "io"; +) + +import a "io" + +import ( + "io"; + "io"; + "io"; +) + +import ( + "io"; + aLongRename "io"; + b "io"; + c "i" "o"; +) + +// TODO(gri) add more test cases |