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:
Mikhail Glushenkov 2008-12-09 14:41:27 +00:00
parent efc5c319ed
commit 78bd53d296
3 changed files with 27 additions and 0 deletions

11
test/LLVMC/clang_hello.c Normal file
View 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;
}

View 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;
}

View File

@ -0,0 +1,3 @@
void f() {
printf("Hello Clang world!\n");
}