2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / vta-2.c
blob5d44262ec76fbe803beb5d24ff01f7be0f18a91b
1 /* { dg-do compile } */
3 static int
4 bar (void *a, unsigned int b, int n)
6 int c = *(unsigned long *) a % b;
7 *(unsigned long *) a = (int) (*(unsigned long *) a) / b;
8 return c;
11 int
12 foo (unsigned long x, int *y, int z)
14 int level;
15 for (level = 0; level < *y; level++)
17 bar (&x, z, sizeof (x));
18 if (x)
19 return *y - 1;