testdata: add more test cases in testdata

Specifically test for one or multiple init functions.
This commit is contained in:
Marc-Antoine Ruel
2018-10-24 22:55:22 -04:00
committed by Ayke van Laethem
parent 97d4558d81
commit 7f30ef7e4d
4 changed files with 27 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
package main
func init() {
println("init")
}
func main() {
println("main")
}
+2
View File
@@ -0,0 +1,2 @@
init
main
+13
View File
@@ -0,0 +1,13 @@
package main
func init() {
println("init1")
}
func init() {
println("init2")
}
func main() {
println("main")
}
+3
View File
@@ -0,0 +1,3 @@
init1
init2
main