From: Matthias Braun Date: Sat, 13 Oct 2007 11:50:52 +0000 (+0000) Subject: fehler95 (entity size is stored in bits which provokes overflows in some cases) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=face42749aa781024aa0e11570bc991c30e6d371;p=libfirm fehler95 (entity size is stored in bits which provokes overflows in some cases) [r16193] --- diff --git a/ir/be/test/fehler95.c b/ir/be/test/fehler95.c new file mode 100644 index 000000000..a85671dc9 --- /dev/null +++ b/ir/be/test/fehler95.c @@ -0,0 +1,10 @@ +#include + +#define SIZE 268435456 +char too_long_for_firm[SIZE]; + +int main(int argc, char **argv) +{ + too_long_for_firm[SIZE-1] = '\0'; + return 0; +}