Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / bom.go
1 // runoutput
2
3 // Copyright 2011 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 // Test source file beginning with a byte order mark.
8
9 package main
10
11 import (
12         "fmt"
13         "strings"
14 )
15
16 func main() {
17         prog = strings.Replace(prog, "BOM", "\uFEFF", -1)
18         fmt.Print(prog)
19 }
20
21 var prog = `BOM
22 package main
23
24 func main() {
25 }
26 `