diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-14 01:34:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-14 01:34:13 +0000 |
commit | cc9f4f466a444616ee5e9e2375affe75c7fbf5ea (patch) | |
tree | 6c2058b0062db43885e8e20b2714486ab53618a3 | |
parent | fb7ea277cda089429e06c5e505497d4340338188 (diff) |
ccc: Add hello.{cpp,m} tests.
- hello.cpp is XFAIL pending g++ emulation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62208 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/ccc/test/ccc/hello.c | 2 | ||||
-rw-r--r-- | tools/ccc/test/ccc/hello.cpp | 10 | ||||
-rw-r--r-- | tools/ccc/test/ccc/hello.m | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/tools/ccc/test/ccc/hello.c b/tools/ccc/test/ccc/hello.c index 96f59f6747..9563fd04fe 100644 --- a/tools/ccc/test/ccc/hello.c +++ b/tools/ccc/test/ccc/hello.c @@ -1,4 +1,6 @@ // RUN: xcc %s -o %t && +// RUN: %t | grep "Hello, World" && +// RUN: xcc -ccc-clang %s -o %t && // RUN: %t | grep "Hello, World" int main() { diff --git a/tools/ccc/test/ccc/hello.cpp b/tools/ccc/test/ccc/hello.cpp new file mode 100644 index 0000000000..75c7bfd84e --- /dev/null +++ b/tools/ccc/test/ccc/hello.cpp @@ -0,0 +1,10 @@ +// RUN: xcc -ccc-cxx %s -o %t && +// RUN: %t | grep "Hello, World" +// XFAIL + +#include <iostream> + +int main() { + std::cout << "Hello, World!\n"; + return 0; +} diff --git a/tools/ccc/test/ccc/hello.m b/tools/ccc/test/ccc/hello.m new file mode 100644 index 0000000000..9563fd04fe --- /dev/null +++ b/tools/ccc/test/ccc/hello.m @@ -0,0 +1,9 @@ +// RUN: xcc %s -o %t && +// RUN: %t | grep "Hello, World" && +// RUN: xcc -ccc-clang %s -o %t && +// RUN: %t | grep "Hello, World" + +int main() { + printf("Hello, World!\n"); + return 0; +} |