diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-05-22 05:10:20 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-05-22 05:10:20 +0000 |
commit | b80294d4e33601ae249ec0ce92e488fba6fc279a (patch) | |
tree | f805bd0ff34fcdc20bcbb2e5099540ff49ec519d | |
parent | c9941666ca2045b46b1cbc7fc0e1e872900fb170 (diff) | |
download | llvm-b80294d4e33601ae249ec0ce92e488fba6fc279a.tar.gz |
Merge from mainline.
Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_23@51413 91177308-0d34-0410-b5e6-96231b3b80d8
-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 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}]] +} + |