blob: 7626fd22e1d8ac3bb0852e11b4ddd208b0d60bfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* PR ipa/59722 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */
extern void abrt (const char *, int) __attribute__((noreturn));
void baz (int *, int *);
static inline int
bar (void)
{
return 1;
}
static inline void
foo (int *x, int y (void))
{
while (1)
{
int a = 0;
if (*x)
{
baz (x, &a);
while (a && !y ())
;
break;
}
abrt ("", 1);
}
}
void
test (int x)
{
foo (&x, bar);
foo (&x, bar);
}
|