github.com/akaros/go-akaros@v0.0.0-20181004170632-85005d477eab/test/bombad.go (about) 1 // errorcheck 2 3 // Copyright 2012 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 // Here for reference, but hard to test automatically 8 // because the BOM muddles the 9 // processing done by ../run. 10 11 package main 12 13 func main() { 14 // There's a bom here. // ERROR "BOM" 15 // And here. // ERROR "BOM" 16 /* And here.*/ // ERROR "BOM" 17 println("hi there") // and here // ERROR "BOM" 18 }