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 11package main 12 13//go:c1 14 15//go:c2 16//doc 17func c() { 18} 19 20//go:d1 21 22//doc 23//go:d2 24type d int 25 26//go:e1 27 28//doc 29//go:e2 30type ( 31 e int 32 f int 33) 34 35//go:_empty1 36//doc 37//go:_empty2 38type () 39 40//go:f 41