[cfe-commits] r67251 - /cfe/trunk/test/Driver/hello.c

Daniel Dunbar daniel at zuster.org
Wed Mar 18 15:49:42 PDT 2009


Author: ddunbar
Date: Wed Mar 18 17:49:41 2009
New Revision: 67251

URL: http://llvm.org/viewvc/llvm-project?rev=67251&view=rev
Log:
Add simple test case to make sure driver can generate executables.
 - Hopefully Chris can pardon one executable test.

Added:
    cfe/trunk/test/Driver/hello.c

Added: cfe/trunk/test/Driver/hello.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/hello.c?rev=67251&view=auto

==============================================================================
--- cfe/trunk/test/Driver/hello.c (added)
+++ cfe/trunk/test/Driver/hello.c Wed Mar 18 17:49:41 2009
@@ -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;
+}





More information about the cfe-commits mailing list