diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 22:49:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 22:49:41 +0000 |
commit | 622bfc8421b63660e392f8876470e71171fedb67 (patch) | |
tree | 9d1437838a96cd610de287adcae6c572cba763e5 | |
parent | 49b98e700e300b8a61b2f7fbb0bb22264e8ec27a (diff) |
Add simple test case to make sure driver can generate executables.
- Hopefully Chris can pardon one executable test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67251 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Driver/hello.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Driver/hello.c b/test/Driver/hello.c new file mode 100644 index 0000000000..8844edea02 --- /dev/null +++ b/test/Driver/hello.c @@ -0,0 +1,14 @@ +// RUN: clang-driver -ccc-echo -o %t %s &> %t.log && + +// Make sure we used clang. +// RUN: grep 'clang" .*hello.c' %t.log && + +// RUN: %t > %t.out && +// RUN: grep "I'm a little driver, short and stout." %t.out + +#include <stdio.h> + +int main() { + printf("I'm a little driver, short and stout."); + return 0; +} |