commit | 76b60f55c0e65e9cfa653e65a3ddc6b660952f33 | [log] [tgz] |
---|---|---|
author | Sebastian Redl <sebastian.redl@getdesigned.at> | Wed Nov 12 00:18:32 2008 +0000 |
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | Wed Nov 12 00:18:32 2008 +0000 |
tree | 3d7749c11e1745195b2a1329b1097a0b04d6b0bd | |
parent | b419dcb0249f1e340ce414d21bba97bff01c1eea [diff] |
Fix testcase for 64-bit systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59099 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c b/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c index e0364d1..746a2f3 100644 --- a/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c +++ b/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
@@ -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;