diff options
Diffstat (limited to 'src/cmd/go/testdata/script/run_dirs.txt')
-rw-r--r-- | src/cmd/go/testdata/script/run_dirs.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/run_dirs.txt b/src/cmd/go/testdata/script/run_dirs.txt new file mode 100644 index 0000000..bd5cfbe --- /dev/null +++ b/src/cmd/go/testdata/script/run_dirs.txt @@ -0,0 +1,21 @@ +cd rundir + +! go run x.go sub/sub.go +stderr 'named files must all be in one directory; have . and sub' +! go run sub/sub.go x.go +stderr 'named files must all be in one directory; have sub and .' + +cd ../ +go run rundir/foo.go ./rundir/bar.go +stderr 'hello world' + +-- rundir/sub/sub.go -- +package main +-- rundir/x.go -- +package main +-- rundir/foo.go -- +package main +func main() { println(msg) } +-- rundir/bar.go -- +package main +const msg = "hello world" |