2009-02-08 11:44:37 +00:00
|
|
|
load_lib llvm.exp
|
|
|
|
|
2009-03-06 17:59:58 +00:00
|
|
|
# 'false.c' is really C++, so it must be treated differently.
|
2009-02-08 11:44:37 +00:00
|
|
|
set special_file "$srcdir/$subdir/false.c"
|
|
|
|
|
|
|
|
if [ llvm_gcc_supports c ] then {
|
|
|
|
# tcl seems to lack 'filter' which would've made this easier...
|
|
|
|
set temp [glob -nocomplain $srcdir/$subdir/*.{c}]
|
|
|
|
set c_files [list]
|
|
|
|
foreach f $temp { if {$f != $special_file} {lappend c_files $f}}
|
|
|
|
|
|
|
|
RunLLVMTests [lsort $c_files]
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ llvm_gcc_supports c++ ] then {
|
|
|
|
RunLLVMTests [lsort [concat [glob -nocomplain $srcdir/$subdir/*.{cpp}] $special_file]]
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ llvm_gcc_supports objc ] then {
|
|
|
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ llvm_gcc_supports obj-c++ ] then {
|
2009-02-26 00:16:33 +00:00
|
|
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
|
2009-02-08 11:44:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
|