blob: 82bc6997bc722935a024173db43633bce93dc926 [file] [log] [blame]
Daniel Dunbar80737ad2009-12-15 22:01:24 +00001// RUN: %clang -ccc-echo -o %t %s 2> %t.log
Daniel Dunbar622bfc82009-03-18 22:49:41 +00002
3// Make sure we used clang.
Frits van Bommelcf4ff462011-02-27 01:17:12 +00004// RUN: grep 'clang\(-[0-9.]\+\)\?" -cc1 .*hello.c' %t.log
Daniel Dunbar622bfc82009-03-18 22:49:41 +00005
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00006// RUN: %t > %t.out
Daniel Dunbar622bfc82009-03-18 22:49:41 +00007// RUN: grep "I'm a little driver, short and stout." %t.out
8
Daniel Dunbarfd5cd992009-11-03 07:49:31 +00009// FIXME: We don't have a usable assembler on Windows, so we can't build real
10// apps yet.
11// XFAIL: win32
12
Daniel Dunbar622bfc82009-03-18 22:49:41 +000013#include <stdio.h>
14
15int main() {
16 printf("I'm a little driver, short and stout.");
17 return 0;
18}