summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr37991.c
blob: f374ea985406b3ba7bad24de9adebae3d1cc7d40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef int Int32;
void use_it(int);
void FindAndReadSignature(int processedSize)
{
  int numPrevBytes = 1;
  for (;;)
    {
      int numBytesInBuffer = numPrevBytes + processedSize;
      Int32 numTests = numBytesInBuffer - 1;
      use_it (numTests);
      numPrevBytes = numBytesInBuffer - numTests;
    }
}