[cfe-commits] r62208 - in /cfe/trunk/tools/ccc/test/ccc: hello.c hello.cpp hello.m
Daniel Dunbar
daniel at zuster.org
Tue Jan 13 17:34:13 PST 2009
Author: ddunbar
Date: Tue Jan 13 19:34:13 2009
New Revision: 62208
URL: http://llvm.org/viewvc/llvm-project?rev=62208&view=rev
Log:
ccc: Add hello.{cpp,m} tests.
- hello.cpp is XFAIL pending g++ emulation.
Added:
cfe/trunk/tools/ccc/test/ccc/hello.cpp
cfe/trunk/tools/ccc/test/ccc/hello.m
Modified:
cfe/trunk/tools/ccc/test/ccc/hello.c
Modified: cfe/trunk/tools/ccc/test/ccc/hello.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/test/ccc/hello.c?rev=62208&r1=62207&r2=62208&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/test/ccc/hello.c (original)
+++ cfe/trunk/tools/ccc/test/ccc/hello.c Tue Jan 13 19:34:13 2009
@@ -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() {
Added: cfe/trunk/tools/ccc/test/ccc/hello.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/test/ccc/hello.cpp?rev=62208&view=auto
==============================================================================
--- cfe/trunk/tools/ccc/test/ccc/hello.cpp (added)
+++ cfe/trunk/tools/ccc/test/ccc/hello.cpp Tue Jan 13 19:34:13 2009
@@ -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;
+}
Added: cfe/trunk/tools/ccc/test/ccc/hello.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/test/ccc/hello.m?rev=62208&view=auto
==============================================================================
--- cfe/trunk/tools/ccc/test/ccc/hello.m (added)
+++ cfe/trunk/tools/ccc/test/ccc/hello.m Tue Jan 13 19:34:13 2009
@@ -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;
+}
More information about the cfe-commits
mailing list