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

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

View as plain text