diff options
Diffstat (limited to 'llgo/test/llgoi/import-source.test')
-rw-r--r-- | llgo/test/llgoi/import-source.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llgo/test/llgoi/import-source.test b/llgo/test/llgoi/import-source.test index c5a3eabf38d..b545b52697e 100644 --- a/llgo/test/llgoi/import-source.test +++ b/llgo/test/llgoi/import-source.test @@ -1,4 +1,4 @@ -// RUN: env GOPATH=%S/Inputs llgoi < %s | FileCheck %s +// RUN: env GOPATH=%S/Inputs llgoi < %s 2>&1 | FileCheck %s // make sure user symbols do not conflict with imported source package Answer := 1 @@ -16,5 +16,15 @@ foo.Answer() strconv.FormatBool(true) // CHECK: #0 string = true +var v1 strconv.NumError +var v2 strconv.NumError + +// v1 and v2 should have the same type identity. +// CHECK-NOT: cannot assign +v1 = v2 + +// Method lookup relies on v1 having a consistent type. +v1.Error + import "foo_cgo" // CHECK: foo_cgo: cannot load cgo package |