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

From-SVN: r34573
This commit is contained in:
Jakub Jelinek 2000-06-16 13:14:56 +02:00 committed by Jakub Jelinek
parent 974ce8d39e
commit 22c40c28b3
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-06-15 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/loop-6.c: New test.
2000-06-14 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20000614-1.c: New test.

View File

@ -0,0 +1,15 @@
main()
{
char c;
char d;
int nbits;
c = -1;
for (nbits = 1 ; nbits < 100; nbits++) {
d = (1 << nbits) - 1;
if (d == c)
break;
}
if (nbits == 100)
abort();
exit(0);
}