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