aboutsummaryrefslogtreecommitdiffhomepage
path: root/compiler/compiler_test.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-04-11 01:56:12 +0200
committerRon Evans <[email protected]>2021-04-12 12:07:42 +0200
commit8383552552c405d3ac2ab9104f9e7845424ded69 (patch)
tree56dc60be9fc9e2765965ed7bc3618f10d7f84760 /compiler/compiler_test.go
parentaa8e12c464045aff00bff2d2ce628a393983b6cd (diff)
downloadtinygo-8383552552c405d3ac2ab9104f9e7845424ded69.tar.gz
tinygo-8383552552c405d3ac2ab9104f9e7845424ded69.zip
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.
Diffstat (limited to 'compiler/compiler_test.go')
-rw-r--r--compiler/compiler_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/compiler_test.go b/compiler/compiler_test.go
index 202ed16fd..444d5f28d 100644
--- a/compiler/compiler_test.go
+++ b/compiler/compiler_test.go
@@ -62,6 +62,7 @@ func TestCompiler(t *testing.T) {
"string.go",
"float.go",
"interface.go",
+ "func.go",
}
for _, testCase := range tests {