From f0d960a2d303d1b7f8ee3bca2d52eee15f4c853e Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Wed, 12 Nov 2008 00:18:32 +0000 Subject: [PATCH] Fix testcase for 64-bit systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59099 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2008-07-31-promotion-of-compound-pointer-arithmetic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 e0364d1fda..746a2f34c9 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 f0() { } 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; -- 2.40.0