mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Simplify LLVMC tests.
llvm-svn: 81659
This commit is contained in:
parent
b5e56d0937
commit
19d95a536c
@ -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 {
|
||||
|
10
test/LLVMC/test_data/false.c
Normal file
10
test/LLVMC/test_data/false.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <iostream>
|
||||
|
||||
extern "C" void test();
|
||||
extern std::string test2();
|
||||
|
||||
int main() {
|
||||
std::cout << "h";
|
||||
test();
|
||||
std::cout << test2() << '\n';
|
||||
}
|
Loading…
Reference in New Issue
Block a user