test: fix cl and ssa tests

This commit is contained in:
Li Jie
2024-08-05 20:52:34 +08:00
parent a1d46e905b
commit 578bc165c4
4 changed files with 2 additions and 224 deletions

View File

@@ -1,8 +1,6 @@
package async
import (
"fmt"
"github.com/goplus/llgo/x/async"
)
@@ -27,13 +25,3 @@ func UseGenInts() int {
}
return r
}
func GenIntsWithDefer() (co *async.Promise[int]) {
defer func() {
if r := recover(); r != nil {
fmt.Println("panic:", r)
}
}()
co.Yield(1)
panic("GenIntsWithDefer")
}