aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue18459.go
blob: 46601e70a4eb90e4e359b61c1d2fa2b919887d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// errorcheck

// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Verify that we have a line number for this error.

package main

//go:nowritebarrier // ERROR "//go:nowritebarrier only allowed in runtime"
func main() {
}