| 1 |
# Load support procs. |
| 2 |
load_lib obj-c++-dg.exp |
| 3 |
|
| 4 |
# If a testcase doesn't have special options, use these. |
| 5 |
global DEFAULT_OBJCXXFLAGS |
| 6 |
if ![info exists DEFAULT_OBJCXXFLAGS] then { |
| 7 |
set DEFAULT_OBJCXXFLAGS " -ansi -pedantic-errors -Wno-long-long" |
| 8 |
} |
| 9 |
|
| 10 |
# Initialize `dg'. |
| 11 |
dg-init |
| 12 |
|
| 13 |
# Gather a list of all tests. |
| 14 |
set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]] |
| 15 |
|
| 16 |
# Main loop. |
| 17 |
dg-runtest $tests "-fgnu-runtime" $DEFAULT_OBJCXXFLAGS |
| 18 |
|
| 19 |
# darwin targets can also run code with the NeXT runtime. |
| 20 |
if [istarget "*-*-darwin*" ] { |
| 21 |
dg-runtest $tests "-fnext-runtime" $DEFAULT_OBJCXXFLAGS |
| 22 |
} |
| 23 |
|
| 24 |
# All done. |
| 25 |
dg-finish |