diff options
-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; +} |