summaryrefslogtreecommitdiff
path: root/src/cmd/gofmt/testdata/emptydecl.input
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gofmt/testdata/emptydecl.input')
-rw-r--r--src/cmd/gofmt/testdata/emptydecl.input16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmd/gofmt/testdata/emptydecl.input b/src/cmd/gofmt/testdata/emptydecl.input
new file mode 100644
index 000000000..4948a61f0
--- /dev/null
+++ b/src/cmd/gofmt/testdata/emptydecl.input
@@ -0,0 +1,16 @@
+//gofmt -s
+
+// Test case for issue 7631.
+
+package main
+
+// Keep this declaration
+var ()
+
+const (
+// Keep this declaration
+)
+
+type ()
+
+func main() {} \ No newline at end of file