1 // $G $D/$F.go && $L $F.$A && ./$A.out >tmp.go &&
2 // $G tmp.go && $L tmp.$A && ./$A.out
5 // Copyright 2011 The Go Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style
7 // license that can be found in the LICENSE file.
9 // Test source files and strings containing \r and \r\n.
19 prog = strings.Replace(prog, "BQ", "`", -1)
20 prog = strings.Replace(prog, "CR", "\r", -1)
30 var CR s = "hello\n" + CR
36 var u = BQhCReCRlCRlCRoCR
39 var golden = "hello\n world"
43 fmt.Printf("s=%q, want %q", s, golden)
46 fmt.Printf("t=%q, want %q", t, golden)
49 fmt.Printf("u=%q, want %q", u, golden)