test(cl): regenerate test .ll files and remove go/types test
- Regenerated all test case .ll files using llgen to reflect the interface metadata package path fix - Updated debug/out.ll which was previously a placeholder - Removed cl/_testdata/gotypesissue test case as requested - Removed _demo/go/gotypesissue demo as requested - All cl tests pass Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com>
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"go/token"
|
||||
"go/types"
|
||||
)
|
||||
|
||||
func main() {
|
||||
pkg := types.NewPackage("example", "example")
|
||||
scope := pkg.Scope()
|
||||
|
||||
obj := types.NewVar(token.NoPos, pkg, "testVar", types.Typ[types.Int])
|
||||
|
||||
insertedObj := scope.Insert(obj)
|
||||
if insertedObj != nil {
|
||||
println("ERROR: Variable already exists in scope")
|
||||
return
|
||||
}
|
||||
|
||||
lookup := scope.Lookup("testVar")
|
||||
if lookup == nil {
|
||||
println("ERROR: Failed to lookup variable")
|
||||
return
|
||||
}
|
||||
|
||||
if lookup.Name() != "testVar" {
|
||||
println("ERROR: Wrong variable name")
|
||||
return
|
||||
}
|
||||
|
||||
println("SUCCESS: Scope.Insert and Lookup work correctly")
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,32 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"go/token"
|
||||
"go/types"
|
||||
)
|
||||
|
||||
func main() {
|
||||
pkg := types.NewPackage("example", "example")
|
||||
scope := pkg.Scope()
|
||||
|
||||
obj := types.NewVar(token.NoPos, pkg, "testVar", types.Typ[types.Int])
|
||||
|
||||
insertedObj := scope.Insert(obj)
|
||||
if insertedObj != nil {
|
||||
println("ERROR: Variable already exists in scope")
|
||||
return
|
||||
}
|
||||
|
||||
lookup := scope.Lookup("testVar")
|
||||
if lookup == nil {
|
||||
println("ERROR: Failed to lookup variable")
|
||||
return
|
||||
}
|
||||
|
||||
if lookup.Name() != "testVar" {
|
||||
println("ERROR: Wrong variable name")
|
||||
return
|
||||
}
|
||||
|
||||
println("SUCCESS: Scope.Insert and Lookup work correctly")
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user