mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
compiler: add func tests
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.
This commit is contained in:
committed by
Ron Evans
parent
aa8e12c464
commit
8383552552
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
func foo(callback func(int)) {
|
||||
callback(3)
|
||||
}
|
||||
|
||||
func bar() {
|
||||
foo(someFunc)
|
||||
}
|
||||
|
||||
func someFunc(int) {
|
||||
}
|
||||
Reference in New Issue
Block a user