summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/torture/dg-torture.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/torture/dg-torture.exp')
-rw-r--r--gcc/testsuite/objc.dg/torture/dg-torture.exp17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/torture/dg-torture.exp b/gcc/testsuite/objc.dg/torture/dg-torture.exp
new file mode 100644
index 000000000..4b1869e9c
--- /dev/null
+++ b/gcc/testsuite/objc.dg/torture/dg-torture.exp
@@ -0,0 +1,17 @@
+# This harness is for tests that should be run at all optimisation levels.
+
+load_lib objc-dg.exp
+
+dg-init
+
+# Gather a list of all tests.
+set tests [lsort [glob -nocomplain $srcdir/$subdir/*.m]]
+
+objc-dg-runtest $tests "-fgnu-runtime"
+
+# darwin targets can also run code with the NeXT runtime.
+if [istarget "*-*-darwin*" ] {
+ objc-dg-runtest $tests "-fnext-runtime"
+}
+
+dg-finish