mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Add some rudimentary tests for .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efc5c319ed
commit
78bd53d296
11
test/LLVMC/clang_hello.c
Normal file
11
test/LLVMC/clang_hello.c
Normal file
@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Test basic functionality of llvmc -clang
|
||||
*
|
||||
* RUN: llvmc -clang %s -o %t
|
||||
* RUN: ./%t | grep {Hello Clang}
|
||||
*/
|
||||
|
||||
int main() {
|
||||
printf("Hello Clang world!\n");
|
||||
return 0;
|
||||
}
|
13
test/LLVMC/clang_together.c
Normal file
13
test/LLVMC/clang_together.c
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Test that `llvmc -clang` can link multiple files
|
||||
*
|
||||
* RUN: llvmc -clang %s %p/test_data/clang_together.c -o %t
|
||||
* RUN: ./%t | grep {Hello Clang}
|
||||
*/
|
||||
|
||||
void f();
|
||||
|
||||
int main() {
|
||||
f();
|
||||
return 0;
|
||||
}
|
3
test/LLVMC/test_data/clang_together.c
Normal file
3
test/LLVMC/test_data/clang_together.c
Normal file
@ -0,0 +1,3 @@
|
||||
void f() {
|
||||
printf("Hello Clang world!\n");
|
||||
}
|
Loading…
Reference in New Issue
Block a user