Author: cornedbee
Date: Tue Nov 11 18:18:32 2008
New Revision: 59099
URL: http://llvm.org/viewvc/llvm-project?rev=59099&view=rev
Log:
Fix testcase for 64-bit systems.
Modified:
cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
Modified:
cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c?rev=59099&r1=59098&r2=59099&view=diff
==============================================================================
---
cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
(original)
+++
cfe/trunk/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
Tue Nov 11 18:18:32 2008
@@ -12,12 +12,12 @@
}
int f1(int *a) {
- int b = a - (int*) 1;
+ long b = a - (int*) 1;
a -= (int*) 1;
- return b == (int) a;
+ return b == (long) a;
}
-int f2(int n) {
+int f2(long n) {
int *b = n + (int*) 1;
n += (int*) 1;
return b == (int*) n;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits