TestCvtCType

This commit is contained in:
xushiwei
2024-05-03 19:02:17 +08:00
parent 330cb22351
commit 91d012d33d
4 changed files with 67 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ func cvtCType(typ types.Type) (types.Type, bool) {
return cvtCStruct(t)
case *types.Named:
if _, cvt := cvtCType(t.Underlying()); cvt {
panic("todo: named type")
panic("don't define named type")
}
case *types.Signature:
t = CFuncDecl(t)