diff options
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/tls/static-1a.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/tls/static-1a.mm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/tls/static-1a.mm b/gcc/testsuite/obj-c++.dg/tls/static-1a.mm new file mode 100644 index 000000000..40974205f --- /dev/null +++ b/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; +} |