2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr71289.c
blob39837b93365f352249d6e0354f5b5f872fc45e5f
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized-raw" } */
4 int f(unsigned a, unsigned b, unsigned *c)
6 if (a > -1 / b)
7 return -1;
8 *c = a * b;
9 return 0;
12 void g(unsigned long long a, unsigned long long b, unsigned long long *c)
14 if (a <= -1 / b)
15 *c = a * b;
18 /* { dg-final { scan-tree-dump-not "trunc_div_expr" "optimized" } } */