summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/LLVMC/dg.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/test/LLVMC/dg.exp b/llvm/test/LLVMC/dg.exp
index 22ecaecbd7b..a2e44b99859 100644
--- a/llvm/test/LLVMC/dg.exp
+++ b/llvm/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}]]
+}
+
OpenPOWER on IntegriCloud