mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Sink llvm-gcc dependent tests into distinct subdirs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43c8a06266
commit
8a2b012ba7
@ -1,5 +1,5 @@
|
||||
// Test that we can compile .c files as C++ and vice versa
|
||||
// RUN: llvmc -x c++ %s -x c %p/test_data/false.cpp -x lisp -x whatnot -x none %p/test_data/false2.cpp -o %t
|
||||
// RUN: llvmc -x c++ %s -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t
|
||||
// RUN: ./%t | grep hello
|
||||
|
||||
#include <iostream>
|
5
test/LLVMC/C++/dg.exp
Normal file
5
test/LLVMC/C++/dg.exp
Normal file
@ -0,0 +1,5 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
if [ llvm_gcc_supports c++ ] then {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
// Check that we can compile files of different types together.
|
||||
// RUN: llvmc %s %p/test_data/together.c -o %t
|
||||
// RUN: llvmc %s %p/../test_data/together.c -o %t
|
||||
// RUN: ./%t | grep hello
|
||||
|
||||
extern "C" void test();
|
5
test/LLVMC/C/dg.exp
Normal file
5
test/LLVMC/C/dg.exp
Normal file
@ -0,0 +1,5 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
if [ llvm_gcc_supports c ] then {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
|
||||
}
|
5
test/LLVMC/ObjC++/dg.exp
Normal file
5
test/LLVMC/ObjC++/dg.exp
Normal file
@ -0,0 +1,5 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
if [ llvm_gcc_supports obj-c++ ] then {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
|
||||
}
|
5
test/LLVMC/ObjC/dg.exp
Normal file
5
test/LLVMC/ObjC/dg.exp
Normal file
@ -0,0 +1,5 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
if [ llvm_gcc_supports objc ] then {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
|
||||
}
|
3
test/LLVMC/dg.exp
Normal file
3
test/LLVMC/dg.exp
Normal file
@ -0,0 +1,3 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
|
@ -1,19 +0,0 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
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}]]
|
||||
}
|
||||
|
||||
if [ llvm_gcc_supports objc ] then {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
|
||||
}
|
||||
|
||||
if [ llvm_gcc_supports obj-c++ ] then {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
|
||||
}
|
||||
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
|
Loading…
Reference in New Issue
Block a user