aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc-obj-c++-shared
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2010-05-12 11:16:33 +0000
committerIain Sandoe <iains@gcc.gnu.org>2010-05-12 11:16:33 +0000
commit101422f0496f2c01f30cb507d59dfdc405a87007 (patch)
tree3f279e5da47116dc02dc0ef1a197d37ed281fe1b /gcc/testsuite/objc-obj-c++-shared
parent623a6941fa3db376bde6179eb7ca2f3b37b89518 (diff)
downloadgcc-101422f0496f2c01f30cb507d59dfdc405a87007.zip
gcc-101422f0496f2c01f30cb507d59dfdc405a87007.tar.gz
gcc-101422f0496f2c01f30cb507d59dfdc405a87007.tar.bz2
Add TLS checks to ObjC
* objc-obj-c++-shared/Object1.m: New. * objc.dg/torture: New directory. * objc.dg/torture/tls: Ditto. * objc.dg/tls: Ditto. * objc.dg/torture/tls/trivial.m: New test. * objc.dg/torture/tls/thr-init-2.m: New test. * objc.dg/torture/tls/thr-init-3.m: New test. * objc.dg/torture/tls/thr-init.m: New test. * objc.dg/torture/tls/diag-1.m: New test. * objc.dg/torture/tls/tls.exp: New. * objc.dg/torture/trivial.m: New test. * objc.dg/torture/dg-torture.exp: New. * objc.dg/tls/diag-3.m: New test. * objc.dg/tls/diag-4.m: New test. * objc.dg/tls/diag-5.m: New test. * objc.dg/tls/init-1.m: New test. * objc.dg/tls/init-2.m: New test. * objc.dg/tls/tls.exp: New. * objc.dg/tls/diag-2.m: New test. * lib/objc.exp: Respond to dg-additional-files. From-SVN: r159311
Diffstat (limited to 'gcc/testsuite/objc-obj-c++-shared')
-rw-r--r--gcc/testsuite/objc-obj-c++-shared/Object1.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/objc-obj-c++-shared/Object1.m b/gcc/testsuite/objc-obj-c++-shared/Object1.m
new file mode 100644
index 0000000..f435a75
--- /dev/null
+++ b/gcc/testsuite/objc-obj-c++-shared/Object1.m
@@ -0,0 +1,11 @@
+#import "Object1.h"
+/* This will generate the code if required - as determined by
+ the headr above. It is kept like this to keep one code file
+ shared between dg-xxxx tests that can ask for an extra source
+ and the objc/{compile,execute}/xxx tests that have to include
+ the implementation explicitly.
+
+ For cases/targets that don't require the generation of the
+ Object implementation, this should result in an empty object.
+*/
+#import "Object1-implementation.h"