summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/LLVMC/dg.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp
index 22ecaecbd7ba..a2e44b99859f 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}]]
+}
+