aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr21518.c
blob: 52cbed6f460f99f130106dbfc6437088c2bccf48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* { dg-do compile } */
/* { dg-options "-O2 -fPIC -fno-tree-pre" } */
/* { dg-require-effective-target ia32 } */
/* { dg-require-effective-target fpic } */

extern void __attribute__ ((regparm (3)))
drawPointsLines (char type, int first, int *dd);

int
do_locator (int *call)
{
  char prephitmp5;
  int type;
  int i;

  if (call == 0)
    prephitmp5 = 1;
  else
    {
      type = *call;
      i = 0;
      do
	{
	  if (i != type)
	    drawPointsLines ((int) (char) type, 0, call);
	  i = i + 1;
	}
      while (i != 2);
      prephitmp5 = (char) type;
    }
  drawPointsLines ((int) prephitmp5, 0, call);
  return 0;
}