...

Text file src/cmd/go/testdata/script/run_dirs.txt

Documentation: cmd/go/testdata/script

     1cd rundir
     2
     3! go run x.go sub/sub.go
     4stderr 'named files must all be in one directory; have . and sub'
     5! go run sub/sub.go x.go
     6stderr 'named files must all be in one directory; have sub and .'
     7
     8cd ../
     9go run rundir/foo.go ./rundir/bar.go
    10stderr 'hello world'
    11
    12-- rundir/sub/sub.go --
    13package main
    14-- rundir/x.go --
    15package main
    16-- rundir/foo.go --
    17package main
    18func main() { println(msg) }
    19-- rundir/bar.go --
    20package main
    21const msg = "hello world"

View as plain text