llvm-project/llgo/test/llgoi/import-source2.test
Peter Collingbourne 6092d2c065 llgoi: Fix importing source packages together with dependent binary packages.
Note that this means that llgoi does not support the case
where a package's pkgpath is different from its import path,
but I don't think this should actually happen with llgoi.

Differential Revision: http://reviews.llvm.org/D8403

llvm-svn: 232612
2015-03-18 06:04:22 +00:00

15 lines
259 B
Plaintext

// RUN: env GOPATH=%S/Inputs llgoi < %s | FileCheck %s
// Test that importing binary before source works.
import "strconv"
import "foo"
// CHECK: # bar
// CHECK: # foo
foo.Answer()
// CHECK: #0 int = 42
strconv.FormatBool(true)
// CHECK: #0 string = true