diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 01:36:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 01:36:19 +0000 |
commit | fa8c00a13c95750c137d5109d48fab90b66f1a7c (patch) | |
tree | 07a9c36d60f5e30b74c74645e0c3976eefeb83fd /llvm/test/LLVMC | |
parent | 6b9b8c14717a9496c8e602f3b4380a3a11cdf5bf (diff) | |
download | bcm5719-llvm-fa8c00a13c95750c137d5109d48fab90b66f1a7c.tar.gz bcm5719-llvm-fa8c00a13c95750c137d5109d48fab90b66f1a7c.zip |
Simplify LLVMC tests.
llvm-svn: 81659
Diffstat (limited to 'llvm/test/LLVMC')
-rw-r--r-- | llvm/test/LLVMC/dash-x.cpp (renamed from llvm/test/LLVMC/false.c) | 0 | ||||
-rw-r--r-- | llvm/test/LLVMC/llvmc.exp | 12 | ||||
-rw-r--r-- | llvm/test/LLVMC/test_data/false.c | 10 |
3 files changed, 12 insertions, 10 deletions
diff --git a/llvm/test/LLVMC/false.c b/llvm/test/LLVMC/dash-x.cpp index eb2883d699e..eb2883d699e 100644 --- a/llvm/test/LLVMC/false.c +++ b/llvm/test/LLVMC/dash-x.cpp diff --git a/llvm/test/LLVMC/llvmc.exp b/llvm/test/LLVMC/llvmc.exp index fd5a0466ad8..f33e24381d1 100644 --- a/llvm/test/LLVMC/llvmc.exp +++ b/llvm/test/LLVMC/llvmc.exp @@ -1,19 +1,11 @@ load_lib llvm.exp -# 'false.c' is really C++, so it must be treated differently. -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] + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c}]] } if [ llvm_gcc_supports c++ ] then { - RunLLVMTests [lsort [concat [glob -nocomplain $srcdir/$subdir/*.{cpp}] $special_file]] + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{cpp}]] } if [ llvm_gcc_supports objc ] then { diff --git a/llvm/test/LLVMC/test_data/false.c b/llvm/test/LLVMC/test_data/false.c new file mode 100644 index 00000000000..98842fe311e --- /dev/null +++ b/llvm/test/LLVMC/test_data/false.c @@ -0,0 +1,10 @@ +#include <iostream> + +extern "C" void test(); +extern std::string test2(); + +int main() { + std::cout << "h"; + test(); + std::cout << test2() << '\n'; +} |