fehler95 (entity size is stored in bits which provokes overflows in some cases)
authorMatthias Braun <matze@braunis.de>
Sat, 13 Oct 2007 11:50:52 +0000 (11:50 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 13 Oct 2007 11:50:52 +0000 (11:50 +0000)
[r16193]

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

diff --git a/ir/be/test/fehler95.c b/ir/be/test/fehler95.c
new file mode 100644 (file)
index 0000000..a85671d
--- /dev/null
@@ -0,0 +1,10 @@
+#include <assert.h>
+
+#define SIZE 268435456
+char too_long_for_firm[SIZE];
+
+int main(int argc, char **argv)
+{
+       too_long_for_firm[SIZE-1] = '\0';
+       return 0;
+}