* gcc.c-torture/execute/loop-7.c: New test.

From-SVN: r37430
This commit is contained in:
Jakub Jelinek 2000-11-13 15:41:38 +01:00 committed by Jakub Jelinek
parent b74384156a
commit 529c0acbb0
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-11-13 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/loop-7.c: New test.
2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c99-mixdecl-1.c, gcc.dg/c90-mixdecl-1.c: New tests.

View File

@ -0,0 +1,19 @@
void foo (unsigned int n)
{
int i, j = -1;
for (i = 0; i < 10 && j < 0; i++)
{
if ((1UL << i) == n)
j = i;
}
if (j < 0)
abort ();
}
main()
{
foo (64);
exit (0);
}