From bd524aa3cf47fcc92a419069d1b5ba77c330e64c Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 2 Feb 2000 05:02:47 +0000 Subject: * gcc.dg/loop-1.c: New test. From-SVN: r31750 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/loop-1.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/loop-1.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a3fe87..bdbe550 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-02-02 Alexandre Oliva + + * gcc.dg/loop-1.c: New test. + 2000-01-26 Alexandre Oliva * gcc.dg/unused-2.c: New test. diff --git a/gcc/testsuite/gcc.dg/loop-1.c b/gcc/testsuite/gcc.dg/loop-1.c new file mode 100644 index 0000000..a2c7fe6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/loop-1.c @@ -0,0 +1,20 @@ +/* Copyright (C) 2000 Free Software Foundation. + + Simplified from gcc/fold-const.c + by Alexandre Oliva */ + +/* { dg-do compile } */ + +void +mul_double () +{ + int i, j, *prod; + + for (i = 0; i < 4; i++) + { + for (j = 0; j < 4; j++) + { + *prod = 0; + } + } +} -- cgit v1.1