aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm')
-rw-r--r--gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm b/gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm
new file mode 100644
index 000000000..40974205f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/obj-c++.dg/tls/static-1a.mm
@@ -0,0 +1,17 @@
+// { dg-skip-if "Additional Source File" *-*-* "*" "" }
+// This is the additional source file for test static-1.mm
+
+struct A
+{
+ static __thread int i;
+};
+
+int
+test ()
+{
+ if (A::i != 8)
+ return 1;
+
+ A::i = 17;
+ return 0;
+}