From: Christoph Mallon Date: Tue, 28 Aug 2007 10:00:07 +0000 (+0000) Subject: fehler72: wrong conversion from unsigned int to long long. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=576cce6deb646240e0c266553f89a14f390d7a9c;p=libfirm fehler72: wrong conversion from unsigned int to long long. [r15614] --- diff --git a/ir/be/test/fehler72.c b/ir/be/test/fehler72.c new file mode 100644 index 000000000..363c8dc23 --- /dev/null +++ b/ir/be/test/fehler72.c @@ -0,0 +1,14 @@ +/*$ -fno-inline $*/ +#include + +unsigned f(unsigned a, unsigned b) +{ + return (long long)a * b >> 16; +} + + +int main(void) +{ + printf("%X\n", f(0xFFFFFFFF, 1)); + return 0; +}