From 622bfc8421b63660e392f8876470e71171fedb67 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 18 Mar 2009 22:49:41 +0000 Subject: [PATCH] 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 --- test/Driver/hello.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Driver/hello.c 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 + +int main() { + printf("I'm a little driver, short and stout."); + return 0; +} -- 2.40.0