parent
954d8e993c
commit
8cc24765ee
|
@ -1,3 +1,7 @@
|
|||
1999-12-16 Bernd Schmidt <bernds@cygnus.co.uk>
|
||||
|
||||
* execute/991216-4.c: New test.
|
||||
|
||||
1999-12-16 Michael Meissner <meissner@cygnus.com>
|
||||
|
||||
* execute/991216-1.c: New test.
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
/* Test against a problem with loop reversal. */
|
||||
static void bug(int size, int tries)
|
||||
{
|
||||
int i;
|
||||
int num = 0;
|
||||
while (num < size)
|
||||
{
|
||||
for (i = 1; i < tries; i++) num++;
|
||||
}
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
bug(5, 10);
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue