]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo/internal/testtls: cleanup and support more arches
authorAustin Clements <austin@google.com>
Thu, 18 May 2023 20:26:13 +0000 (16:26 -0400)
committerAustin Clements <austin@google.com>
Fri, 19 May 2023 01:37:39 +0000 (01:37 +0000)
commitb42ce3a65fd0ea323a67bc8bdbb2a88e7148dcc7
treed56bfb5fe575ac096f353b31f207638baf1e1462
parent3ebbaf3a4dbde6f0298978f502f5058fb0e9e948
cmd/cgo/internal/testtls: cleanup and support more arches

Currently, this test only enabled on non-Darwin UNIX platforms because
it uses the non-standard _thread attribute for thread-local storage.
C11 introduced a standard way to declare something thread-local, so
this CL takes advantage of that to generalize the test to Darwin and
Windows.

Change-Id: Iba31b6216721df6eb8e978d7487cd3a787cae588
Reviewed-on: https://go-review.googlesource.com/c/go/+/496295
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/cmd/cgo/internal/testtls/tls.c
src/cmd/cgo/internal/testtls/tls.go
src/cmd/cgo/internal/testtls/tls_none.go