summaryrefslogtreecommitdiffstats
path: root/tools/regression/tls/libxx/xx.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2004-08-03 09:04:01 +0000
committerdfr <dfr@FreeBSD.org>2004-08-03 09:04:01 +0000
commitc5d9c3618efa06abd292cabeea45abf2d8f73b14 (patch)
tree799306d40d41245260af360416589ca5c07e375f /tools/regression/tls/libxx/xx.c
parentaedc433cf36288de98437f3d9a41b9380f81a498 (diff)
downloadFreeBSD-src-c5d9c3618efa06abd292cabeea45abf2d8f73b14.zip
FreeBSD-src-c5d9c3618efa06abd292cabeea45abf2d8f73b14.tar.gz
Add regression tests for TLS.
Diffstat (limited to 'tools/regression/tls/libxx/xx.c')
-rw-r--r--tools/regression/tls/libxx/xx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/regression/tls/libxx/xx.c b/tools/regression/tls/libxx/xx.c
new file mode 100644
index 0000000..6d1e73f
--- /dev/null
+++ b/tools/regression/tls/libxx/xx.c
@@ -0,0 +1,12 @@
+/* $FreeBSD$ */
+
+extern int __thread yy1;
+int __thread xx1 = 1;
+int __thread xx2 = 2;
+int __thread xxa[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
+
+int
+xxyy()
+{
+ return yy1;
+}
OpenPOWER on IntegriCloud