summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
diff options
context:
space:
mode:
authorrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-25 11:13:41 +0000
committerrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-25 11:13:41 +0000
commit65d2fe43e62f6c1918df62bcc01f8c74af5d88ac (patch)
tree39b9a5669d95f92e365f7de8ad447f8b7ea2e79c /gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
parent7b4faed5a8d61123b83da38afddfecd7a034ff14 (diff)
downloadgcc-65d2fe43e62f6c1918df62bcc01f8c74af5d88ac.tar.gz
* gcc.dg/tree-ssa/predcom-1.c (count_averages): Avoid overflow
during addition if an int is only 16 bits wide. * gcc.dg/tree-ssa/predcom-2.c (fib): Avoid overflow of 16-bit int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126908 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c b/gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
index b7088c5f83f..3ad13eaeda0 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
@@ -4,7 +4,7 @@
void abort (void);
-int fib[1000];
+long int fib[1000];
void count_fib(void)
{