Source file src/cmd/cover/testdata/directives.go
1 // Copyright 2017 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // This file is processed by the cover command, then a test verifies that 6 // all compiler directives are preserved and positioned appropriately. 7 8 //go:a 9 10 //go:b 11 package main 12 13 //go:c1 14 15 //go:c2 16 //doc 17 func c() { 18 } 19 20 //go:d1 21 22 //doc 23 //go:d2 24 type d int 25 26 //go:e1 27 28 //doc 29 //go:e2 30 type ( 31 e int 32 f int 33 ) 34 35 //go:_empty1 36 //doc 37 //go:_empty2 38 type () 39 40 //go:f 41