freebsd-dev/test/Driver/hello.c

19 lines
448 B
C
Raw Normal View History

// RUN: %clang -ccc-echo -o %t.exe %s 2> %t.log
2009-06-02 17:58:47 +00:00
// Make sure we used clang.
// RUN: grep 'clang\(-[0-9.]\+\)\?\(\.[Ee][Xx][Ee]\)\?" -cc1 .*hello.c' %t.log
2009-06-02 17:58:47 +00:00
// RUN: %t.exe > %t.out
2009-06-02 17:58:47 +00:00
// RUN: grep "I'm a little driver, short and stout." %t.out
2009-11-04 15:04:32 +00:00
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32
2009-06-02 17:58:47 +00:00
#include <stdio.h>
int main() {
printf("I'm a little driver, short and stout.");
return 0;
}