Ada: Fix assertion failure with iterator in container aggregate
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / minmax-17.c
blob7c76cfc62a906a42850a2e3dabf09fe7db8f74af
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-phiopt1-details" } */
4 static inline unsigned long long g(int t)
6 unsigned t1 = t;
7 return t1;
9 unsigned long long test_max(int c, int d, int e)
11 unsigned long long t;
12 if (c > d)
13 t = g(c);
14 else
15 t = g(d);
16 return t;
19 /* We should figure out that test_max has an MAX_EXPR in it. */
20 /* { dg-final { scan-tree-dump " = MAX_EXPR" "phiopt1"} } */
21 /* { dg-final { scan-tree-dump-times "changed to factor operation out from" 2 "phiopt1"} } */