[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/template3.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 20 11:35:42 PST 2007
Changes in directory llvm-test/SingleSource/UnitTests/Integer:
template3.cpp updated: 1.2 -> 1.3
---
Log message:
Don't use C++ iostreams, lli can't resolve cout or cerr.
---
Diffs of the changes: (+6 -10)
template3.cpp | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
Index: llvm-test/SingleSource/UnitTests/Integer/template3.cpp
diff -u llvm-test/SingleSource/UnitTests/Integer/template3.cpp:1.2 llvm-test/SingleSource/UnitTests/Integer/template3.cpp:1.3
--- llvm-test/SingleSource/UnitTests/Integer/template3.cpp:1.2 Fri Jan 19 16:54:01 2007
+++ llvm-test/SingleSource/UnitTests/Integer/template3.cpp Sat Jan 20 13:35:27 2007
@@ -4,30 +4,26 @@
//
//===------------------------------------------------------------------------===//
-#include <iostream>
+#include <stdio.h>
using namespace std;
typedef int __attribute__ ((bitwidth(17))) int17;
typedef int __attribute__ ((bitwidth(15))) int15;
template<class T, class U, int I> struct X
- { void f() { cout << "Primary template" << endl; } };
+ { void f() { printf("Primary template\n"); } };
template<class T, int I> struct X<T, T*, I>
- { void f() { cout << "Partial specialization 1" << endl;
- } };
+ { void f() { printf("Partial specialization 1\n"); } };
template<class T, class U, int I> struct X<T*, U, I>
- { void f() { cout << "Partial specialization 2" << endl;
- } };
+ { void f() { printf("Partial specialization 2\n"); } };
template<class T> struct X<int, T*, 10>
- { void f() { cout << "Partial specialization 3" << endl;
- } };
+ { void f() { printf("Partial specialization 3\n"); } };
template<class T, class U, int I> struct X<T, U*, I>
- { void f() { cout << "Partial specialization 4" << endl;
- } };
+ { void f() { printf("Partial specialization 4\n"); } };
int main() {
X<int17, int17, 10> a;
More information about the llvm-commits
mailing list