Source file test/fixedbugs/issue10407.go

     1  // runoutput
     2  
     3  // Copyright 2015 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Issue 10407: gccgo failed to remove carriage returns
     8  // from raw string literals.
     9  
    10  package main
    11  
    12  import "fmt"
    13  
    14  func main() {
    15  	fmt.Println("package main\nfunc main() { if `a\rb\r\nc` != \"ab\\nc\" { panic(42) }}")
    16  }
    17  

View as plain text