diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-05-18 18:28:17 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-05-18 18:28:17 -0700 |
commit | 39ed6a88c74db5412652f0167d03f71eca4f02fc (patch) | |
tree | ce7d57b2ebddffe47302ac36a784bde0fbb24672 /libgo | |
parent | 01b2864757540d24c4e717a77b40b29369c064b2 (diff) | |
download | gcc-39ed6a88c74db5412652f0167d03f71eca4f02fc.tar.gz |
libgo: use Windows line endings in testwinsignal
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/runtime/testdata/testwinsignal/main.go | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/libgo/go/runtime/testdata/testwinsignal/main.go b/libgo/go/runtime/testdata/testwinsignal/main.go index 1e7c9475fd6..d8cd884ffac 100644 --- a/libgo/go/runtime/testdata/testwinsignal/main.go +++ b/libgo/go/runtime/testdata/testwinsignal/main.go @@ -1,19 +1,19 @@ -package main - -import ( - "fmt" - "os" - "os/signal" - "time" -) - -func main() { - c := make(chan os.Signal, 1) - signal.Notify(c) - - fmt.Println("ready") - sig := <-c - - time.Sleep(time.Second) - fmt.Println(sig) -} +package main
+
+import (
+ "fmt"
+ "os"
+ "os/signal"
+ "time"
+)
+
+func main() {
+ c := make(chan os.Signal, 1)
+ signal.Notify(c)
+
+ fmt.Println("ready")
+ sig := <-c
+
+ time.Sleep(time.Second)
+ fmt.Println(sig)
+}
|