aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/libgo/go/exp/gotype/testdata/test1.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/libgo/go/exp/gotype/testdata/test1.go')
-rw-r--r--gcc-4.8.1/libgo/go/exp/gotype/testdata/test1.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc-4.8.1/libgo/go/exp/gotype/testdata/test1.go b/gcc-4.8.1/libgo/go/exp/gotype/testdata/test1.go
deleted file mode 100644
index 6a6f477e7..000000000
--- a/gcc-4.8.1/libgo/go/exp/gotype/testdata/test1.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2011 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 test1
-
-func _() {
- // the scope of a local type declaration starts immediately after the type name
- type T struct{ _ *T }
-}
-
-func _(x interface{}) {
- // the variable defined by a TypeSwitchGuard is declared in each TypeCaseClause
- switch t := x.(type) {
- case int:
- _ = t
- case float32:
- _ = t
- default:
- _ = t
- }
-
- // the variable defined by a TypeSwitchGuard must not conflict with other
- // variables declared in the initial simple statement
- switch t := 0; t := x.(type) {
- }
-}