cl: _testcgo/strlen

This commit is contained in:
xushiwei
2024-04-26 02:40:36 +08:00
parent 43ae7a23b2
commit a3d6a94600
5 changed files with 88 additions and 15 deletions

View File

@@ -27,8 +27,12 @@ func testCompile(t *testing.T, src, expected string) {
cltest.TestCompileEx(t, src, "foo.go", expected)
}
func TestFromTestcgo(t *testing.T) {
cltest.FromDir(t, "strlen", "./_testcgo", true)
}
func TestFromTestdata(t *testing.T) {
cltest.FromDir(t, "apkg", "./_testdata", false)
cltest.FromDir(t, "", "./_testdata", false)
}
func TestVar(t *testing.T) {