RISC-V: Fix factor in dwarf_poly_indeterminate_value [PR116305]
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr92883.c
bloba7c5dc6de876c546e1c2d4effbb66e501caf71a7
1 /* PR ipa/92883 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 int a, b, c, d;
6 unsigned e;
7 void baz (void *, int);
8 void grault (int, unsigned long);
9 int foo (unsigned g) { return a / g; }
10 void bar (void *g) { if (b) baz (g, 5); }
11 static void quux (int, unsigned long);
12 static void qux (unsigned long g) { if (g) { d = foo (-1); quux (e, (d & 2) + g); } }
13 static void quux (int g, unsigned long m) { (void) g; grault (c, m); bar (""); }
14 void corge () { qux (e); }