1/* { dg-do compile } */
2/* { dg-options "-O2 -fPIC -fno-tree-pre" } */
3/* { dg-require-effective-target ilp32 } */
4/* { dg-require-effective-target fpic } */
5
6extern void __attribute__ ((regparm (3)))
7drawPointsLines (char type, int first, int *dd);
8
9int
10do_locator (int *call)
11{
12  char prephitmp5;
13  int type;
14  int i;
15
16  if (call == 0)
17    prephitmp5 = 1;
18  else
19    {
20      type = *call;
21      i = 0;
22      do
23	{
24	  if (i != type)
25	    drawPointsLines ((int) (char) type, 0, call);
26	  i = i + 1;
27	}
28      while (i != 2);
29      prephitmp5 = (char) type;
30    }
31  drawPointsLines ((int) prephitmp5, 0, call);
32  return 0;
33}
34