* gcc.c-torture/execute/loop-7.c: New test.
From-SVN: r37430
This commit is contained in:
parent
b74384156a
commit
529c0acbb0
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue