aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/obj-c++-dg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/lib/obj-c++-dg.exp')
-rw-r--r--gcc/testsuite/lib/obj-c++-dg.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/lib/obj-c++-dg.exp b/gcc/testsuite/lib/obj-c++-dg.exp
index 3b26342f524..95647fe31f4 100644
--- a/gcc/testsuite/lib/obj-c++-dg.exp
+++ b/gcc/testsuite/lib/obj-c++-dg.exp
@@ -29,7 +29,7 @@ proc obj-c++-dg-prune { system text } {
# Modified dg-runtest that can cycle through a list of optimization options
# as c-torture does.
-proc obj-c++-dg-runtest { testcases default-extra-flags } {
+proc obj-c++-dg-runtest { testcases flags default-extra-flags } {
global runtests
# Some callers set torture options themselves; don't override those.
@@ -59,9 +59,9 @@ proc obj-c++-dg-runtest { testcases default-extra-flags } {
set nshort [file tail [file dirname $test]]/[file tail $test]
- foreach flags $option_list {
+ foreach flags_t $option_list {
# combine flags so that dg-skip & xfail will see the extras.
- set combined_flags "$flags ${default-extra-flags}"
+ set combined_flags "$flags $flags_t ${default-extra-flags}"
verbose "Testing $nshort, $combined_flags" 1
dg-test $test $combined_flags ""
}