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
9package main
10
11import (
12	"fmt"
13	"strings"
14)
15
16func main() {
17	prog = strings.Replace(prog, "BOM", "\uFEFF", -1)
18	fmt.Print(prog)
19}
20
21var prog = `BOM
22package main
23
24func main() {
25}
26`
27