1 // Copyright 2014 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.
5 // +build aix dragonfly freebsd linux netbsd solaris
10 extern int __thread tlsvar;
11 int *getTLS() { return &tlsvar; }
16 if v := *C.getTLS(); v != 12345 {
18 panic("BAD TLS value")