mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 14:48:40 +00:00
8383552552
This is basically just a golden test for the "switch" style of func lowering. The next commit will make changes to this lowering, which will be visible in the test output.
13 lines
115 B
Go
13 lines
115 B
Go
package main
|
|
|
|
func foo(callback func(int)) {
|
|
callback(3)
|
|
}
|
|
|
|
func bar() {
|
|
foo(someFunc)
|
|
}
|
|
|
|
func someFunc(int) {
|
|
}
|