summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-11-12 00:18:32 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-11-12 00:18:32 +0000
commit85a401916721e37f84dcb598fece09a0b8d02993 (patch)
treebef5d4acd2307d09d4bd92644b7e2595ef618bba /clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
parent1b504d537296dedf08a6ac2c2df2fa25c50ff343 (diff)
downloadbcm5719-llvm-85a401916721e37f84dcb598fece09a0b8d02993.tar.gz
bcm5719-llvm-85a401916721e37f84dcb598fece09a0b8d02993.zip
Fix testcase for 64-bit systems.
llvm-svn: 59099
Diffstat (limited to 'clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c')
-rw-r--r--clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c b/clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
index e0364d1fda5..746a2f34c96 100644
--- a/clang/test/CodeGen/2008-07-31-promotion-of-compound-pointer-arithmetic.c
+++ b/clang/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;
OpenPOWER on IntegriCloud