PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45105.c
bloba93a21f9ee54d3ccfcbdd9188f8c317a8779b21f
1 /* PR debug/45105 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -fcompare-debug" } */
5 extern int *baz (int *, int *);
7 void
8 bar (int *p1, int *p2)
10 int n = *baz (0, 0);
11 p1[n] = p2[n];
14 void
15 foo (int *p, int l)
17 int a1[32];
18 int a2[32];
19 baz (a1, a2);
20 while (l)
22 if (l & 1)
23 p = baz (a2, p);
24 l--;
25 bar (a1, a2);