mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
testdata: add more test cases in testdata
Specifically test for one or multiple init functions.
This commit is contained in:
committed by
Ayke van Laethem
parent
97d4558d81
commit
7f30ef7e4d
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package main
|
||||
|
||||
func init() {
|
||||
println("init")
|
||||
}
|
||||
|
||||
func main() {
|
||||
println("main")
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
init
|
||||
main
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
func init() {
|
||||
println("init1")
|
||||
}
|
||||
|
||||
func init() {
|
||||
println("init2")
|
||||
}
|
||||
|
||||
func main() {
|
||||
println("main")
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
init1
|
||||
init2
|
||||
main
|
||||
Reference in New Issue
Block a user