aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue18459.go
blob: ac07661d63ba0fba787a226d98cd0d8504c931ed (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() {
}