- hello.cpp is XFAIL pending g++ emulation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62208
91177308-0d34-0410-b5e6-
96231b3b80d8
// RUN: xcc %s -o %t &&
+// RUN: %t | grep "Hello, World" &&
+// RUN: xcc -ccc-clang %s -o %t &&
// RUN: %t | grep "Hello, World"
int main() {
--- /dev/null
+// RUN: xcc -ccc-cxx %s -o %t &&
+// RUN: %t | grep "Hello, World"
+// XFAIL
+
+#include <iostream>
+
+int main() {
+ std::cout << "Hello, World!\n";
+ return 0;
+}
--- /dev/null
+// 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;
+}