aboutsummaryrefslogtreecommitdiff
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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/regression/tls/libxx/xx.c b/tools/regression/tls/libxx/xx.c
new file mode 100644
index 000000000000..bc81531e2ce0
--- /dev/null
+++ b/tools/regression/tls/libxx/xx.c
@@ -0,0 +1,11 @@
+
+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;
+}