fehler86: 64bit in 32bit address calculation. The frontend probably should generate...
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 27 Sep 2007 18:58:12 +0000 (18:58 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 27 Sep 2007 18:58:12 +0000 (18:58 +0000)
[r15980]

ir/be/test/fehler86.c [new file with mode: 0644]

diff --git a/ir/be/test/fehler86.c b/ir/be/test/fehler86.c
new file mode 100644 (file)
index 0000000..fd2e92b
--- /dev/null
@@ -0,0 +1,13 @@
+int w[] = { 1, 2, 3 };
+int *x = w;
+
+int f(long long a)
+{
+       return x[a];
+}
+
+int main(void)
+{
+       printf("%d (should be 2)\n", f(1));
+       return 0;
+}