[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2002-05-19-DivTest.c

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Jul 8 08:42:02 PDT 2004


Changes in directory llvm/test/Programs/SingleSource/UnitTests:

2002-05-19-DivTest.c updated: 1.2 -> 1.3

---
Log message:

Pass long longs to the testL function and use the ll modifier to print them with printf. Bug found by Vladimir Prus

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

Index: llvm/test/Programs/SingleSource/UnitTests/2002-05-19-DivTest.c
diff -u llvm/test/Programs/SingleSource/UnitTests/2002-05-19-DivTest.c:1.2 llvm/test/Programs/SingleSource/UnitTests/2002-05-19-DivTest.c:1.3
--- llvm/test/Programs/SingleSource/UnitTests/2002-05-19-DivTest.c:1.2	Mon Jul  7 17:46:59 2003
+++ llvm/test/Programs/SingleSource/UnitTests/2002-05-19-DivTest.c	Thu Jul  8 08:41:21 2004
@@ -1,8 +1,8 @@
 extern int printf(const char *, ...);
 
-void testL(long Arg) {
-  printf("%ld\n", Arg / (1LL << 4));
-  printf("%ld\n", Arg / (1LL << 46));
+void testL(long long Arg) {
+  printf("%lld\n", Arg / (1LL << 4));
+  printf("%lld\n", Arg / (1LL << 46));
 }
 
 void test(int Arg) {





More information about the llvm-commits mailing list