2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr21518.c
blob52cbed6f460f99f130106dbfc6437088c2bccf48
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fPIC -fno-tree-pre" } */
3 /* { dg-require-effective-target ia32 } */
4 /* { dg-require-effective-target fpic } */
6 extern void __attribute__ ((regparm (3)))
7 drawPointsLines (char type, int first, int *dd);
9 int
10 do_locator (int *call)
12 char prephitmp5;
13 int type;
14 int i;
16 if (call == 0)
17 prephitmp5 = 1;
18 else
20 type = *call;
21 i = 0;
24 if (i != type)
25 drawPointsLines ((int) (char) type, 0, call);
26 i = i + 1;
28 while (i != 2);
29 prephitmp5 = (char) type;
31 drawPointsLines ((int) prephitmp5, 0, call);
32 return 0;