diff options
-rw-r--r-- | test/LLVMC/dg.exp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp index 22ecaec..a2e44b9 100644 --- a/test/LLVMC/dg.exp +++ b/test/LLVMC/dg.exp @@ -1,3 +1,10 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c,cpp}]] +if [ llvm_gcc_supports c ] then { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c}]] +} + +if [ llvm_gcc_supports c++ ] then { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{cpp}]] +} + |