cl: test decl only pkg kind

This commit is contained in:
Li Jie
2024-06-09 19:23:22 +08:00
parent 8b7d8b7786
commit c8cc2dac04

View File

@@ -121,6 +121,12 @@ func TestPkgKind(t *testing.T) {
if v, _ := pkgKind(""); v != PkgLLGo {
t.Fatal("pkgKind:", v)
}
if v, _ := pkgKind("decl"); v != PkgDeclOnly {
t.Fatal("pkgKind:", v)
}
if v, _ := pkgKind("decl: test.ll"); v != PkgDeclOnly {
t.Fatal("pkgKind:", v)
}
}
func TestPkgKindOf(t *testing.T) {