New testcase.

From-SVN: r30977
This commit is contained in:
Bernd Schmidt 1999-12-16 10:45:50 +00:00 committed by Bernd Schmidt
parent 954d8e993c
commit 8cc24765ee
2 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}