mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 00:31:30 +08:00
* gcc.c-torture/execute/990527-1.c: New test.
From-SVN: r27192
This commit is contained in:
parent
b838974e2b
commit
49447b3665
@ -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.
|
||||
|
30
gcc/testsuite/gcc.c-torture/execute/990527-1.c
Normal file
30
gcc/testsuite/gcc.c-torture/execute/990527-1.c
Normal 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user