Commit 34487e74 authored by Matthias Braun's avatar Matthias Braun
Browse files

fixed testcase

[r15758]
parent a01bb4cc
long long k;
long long k2;
long long f(long long a, long long b)
void f(long long a, long long b)
{
long long c = (a & 0xffffffff) | 0x100000000;
return a + b + c;
long long c = (a & 0xffffffffLL) | 0x100000000LL;
k = c + b;
k2 = a + b;
}
int main(int argc, char **argv) {
printf("Res: %llx\n", f(0x100000000, 0x100000000));
f(0x100000000LL, 0x100000000LL);
printf("Res: %llx %llx\n", k, k2);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment