diff options
Diffstat (limited to 'test/nowritebarrier.go')
-rw-r--r-- | test/nowritebarrier.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/nowritebarrier.go b/test/nowritebarrier.go index 654f16d0d..d176e28b5 100644 --- a/test/nowritebarrier.go +++ b/test/nowritebarrier.go @@ -1,12 +1,14 @@ -// errorcheck -+ +// errorcheck -+ -p=runtime // 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. // Test go:nowritebarrier and related directives. +// This must appear to be in package runtime so the compiler +// recognizes "systemstack". -package p +package runtime type t struct { f *t |