Fix const folding of 64bit pointer constants

See testcase.
This commit is contained in:
Michael Matz
2016-10-04 01:20:33 +02:00
parent 0b0e64c2c9
commit 3bc9c325c5
2 changed files with 8 additions and 2 deletions

View File

@ -946,6 +946,12 @@ void expr_ptr_test()
j = -1;
printf("%d\n", sp[j].i);
}
#ifdef __LP64__
i = 1;
p = (int*)0x100000000UL + i;
i = ((long)p) >> 32;
printf("largeptr: %p %d\n", p, i);
#endif
}
void expr_cmp_test()