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
15 lines
259 B
Plaintext
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
|