summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/fnul.c
blob: b0c9816adf702dcd2e404fa4fd20d0cf875bdd4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
main ()
{
  int i;
  int f;

  for (i = 0;; i--)
    {
      f = 0;

      if ((i & (i - 1)) == 0)
	{
	  printf ("d");
	  f = 1;
	}
      if ((i & -i) == i)
	{
	  printf ("t");
	  f = 1;
	}
      if (f)
	printf ("%d\n", i);
    }
}