diff options
| -rw-r--r-- | clang/tools/ccc/test/ccc/hello.c | 2 | ||||
| -rw-r--r-- | clang/tools/ccc/test/ccc/hello.cpp | 10 | ||||
| -rw-r--r-- | clang/tools/ccc/test/ccc/hello.m | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/clang/tools/ccc/test/ccc/hello.c b/clang/tools/ccc/test/ccc/hello.c index 96f59f6747c..9563fd04fe0 100644 --- a/clang/tools/ccc/test/ccc/hello.c +++ b/clang/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/clang/tools/ccc/test/ccc/hello.cpp b/clang/tools/ccc/test/ccc/hello.cpp new file mode 100644 index 00000000000..75c7bfd84e5 --- /dev/null +++ b/clang/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/clang/tools/ccc/test/ccc/hello.m b/clang/tools/ccc/test/ccc/hello.m new file mode 100644 index 00000000000..9563fd04fe0 --- /dev/null +++ b/clang/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; +} |

