2 load_lib obj-c++-dg.exp
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"
13 # Gather a list of all tests.
14 set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]]
17 dg-runtest $tests "-fgnu-runtime" $DEFAULT_OBJCXXFLAGS
19 # darwin targets can also run code with the NeXT runtime.
20 if [istarget "*-*-darwin*" ] {
21 dg-runtest $tests "-fnext-runtime" $DEFAULT_OBJCXXFLAGS