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:
Ayke van Laethem
2021-04-11 01:56:12 +02:00
committed by Ron Evans
parent aa8e12c464
commit 8383552552
3 changed files with 62 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package main
func foo(callback func(int)) {
callback(3)
}
func bar() {
foo(someFunc)
}
func someFunc(int) {
}