summaryrefslogtreecommitdiffstats
path: root/tools/regression/tls/libxx/xx.c
diff options
context:
space:
mode:
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