* gcc.c-torture/execute/990527-1.c: New test.

From-SVN: r27192
This commit is contained in:
Joern Rennecke 1999-05-27 01:24:14 +00:00 committed by Jeff Law
parent b838974e2b
commit 49447b3665
2 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu May 27 02:18:51 1999 Joern Rennecke <amylaar@cygnus.com>
* gcc.c-torture/execute/990527-1.c: New test.
1999-05-25 Craig Burley <craig@jcb-sc.com>
* g77.f-torture/compile/19990525-0.f: New test.

View File

@ -0,0 +1,30 @@
int sum;
void
g (int i)
{
sum += i;
}
void
f(int j)
{
int i;
for (i = 0; i < 9; i++)
{
j++;
g (j);
j = 9;
}
}
int
main ()
{
f (0);
if (sum != 81)
abort ();
exit (0);
}