[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/override.cpp

Reid Spencer reid at x10sys.com
Fri Jan 19 14:21:13 PST 2007



Changes in directory llvm-test/SingleSource/UnitTests/Integer:

override.cpp updated: 1.1 -> 1.2
---
Log message:

Print something useful out.


---
Diffs of the changes:  (+3 -2)

 override.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm-test/SingleSource/UnitTests/Integer/override.cpp
diff -u llvm-test/SingleSource/UnitTests/Integer/override.cpp:1.1 llvm-test/SingleSource/UnitTests/Integer/override.cpp:1.2
--- llvm-test/SingleSource/UnitTests/Integer/override.cpp:1.1	Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/override.cpp	Fri Jan 19 16:20:57 2007
@@ -4,16 +4,17 @@
 
 void func(int32 i)
 {
-    printf("call func with int32");
+    printf("call func with int32: %d\n", (int)i);
 }
 
 void func(int31 s)
 {
-    printf("call func with int31\n");
+    printf("call func with int31: %d\n", (int)s);
 }
 
 int main()
 {
     func( (int31) 1);
+    func( (int32) 2);
     return 0;
 }






More information about the llvm-commits mailing list