summaryrefslogtreecommitdiffstats
path: root/src/cmd/gofmt/testdata/rewrite10.input
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gofmt/testdata/rewrite10.input')
-rw-r--r--src/cmd/gofmt/testdata/rewrite10.input19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmd/gofmt/testdata/rewrite10.input b/src/cmd/gofmt/testdata/rewrite10.input
new file mode 100644
index 0000000..1dd781f
--- /dev/null
+++ b/src/cmd/gofmt/testdata/rewrite10.input
@@ -0,0 +1,19 @@
+//gofmt -r=a->a
+
+// Copyright 2019 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 33103, 33104, and 33105.
+
+package pkg
+
+func fn() {
+ _ = func() {
+ switch {
+ default:
+ }
+ }
+ _ = func() string {}
+ _ = func() { var ptr *string; println(ptr) }
+}