Home | History | Annotate | Download | only in fixedbugs
      1 // errorcheck
      2 
      3 // Copyright 2017 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 package p
      8 
      9 // These error messages are for the invalid literals on lines 19 and 20:
     10 
     11 // ERROR "newline in character literal"
     12 // ERROR "invalid character literal \(missing closing '\)"
     13 
     14 const (
     15 	_ = ''     // ERROR "empty character literal or unescaped ' in character literal"
     16 	_ = 'f'
     17 	_ = 'foo'  // ERROR "invalid character literal \(more than one character\)"
     18 //line issue15611.go:11
     19 	_ = '
     20 	_ = '