mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 19:09:44 +08:00
* gcc.dg/loop-1.c: New test.
From-SVN: r31750
This commit is contained in:
parent
060d7bc161
commit
bd524aa3cf
@ -1,3 +1,7 @@
|
||||
2000-02-02 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
|
||||
|
||||
* gcc.dg/loop-1.c: New test.
|
||||
|
||||
2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
|
||||
|
||||
* gcc.dg/unused-2.c: New test.
|
||||
|
20
gcc/testsuite/gcc.dg/loop-1.c
Normal file
20
gcc/testsuite/gcc.dg/loop-1.c
Normal file
@ -0,0 +1,20 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation.
|
||||
|
||||
Simplified from gcc/fold-const.c
|
||||
by Alexandre Oliva <oliva@lsd.ic.unicamp.br> */
|
||||
|
||||
/* { dg-do compile } */
|
||||
|
||||
void
|
||||
mul_double ()
|
||||
{
|
||||
int i, j, *prod;
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
*prod = 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user