aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/testdata/sayhi.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/ssa/testdata/sayhi.go')
-rw-r--r--src/cmd/compile/internal/ssa/testdata/sayhi.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/testdata/sayhi.go b/src/cmd/compile/internal/ssa/testdata/sayhi.go
new file mode 100644
index 00000000000..680e1eb3a18
--- /dev/null
+++ b/src/cmd/compile/internal/ssa/testdata/sayhi.go
@@ -0,0 +1,12 @@
+package foo
+
+import (
+ "fmt"
+ "sync"
+)
+
+func sayhi(n int, wg *sync.WaitGroup) {
+ fmt.Println("hi", n)
+ fmt.Println("hi", n)
+ wg.Done()
+}