blob: c72fde217440ecb87f406c6931688e6e8bea8be0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-additional-options "-O1" } */
struct Lisp_Overlay
{
struct Lisp_Overlay *next;
};
void
test_1 (struct Lisp_Overlay *tail, long prev)
{
long end;
if (!tail || end < prev || !tail->next) /* { dg-warning "use of uninitialized value 'end'" } */
return;
}
void
test_2 (struct Lisp_Overlay *tail, long prev)
{
long end;
if (tail && end < prev && !tail->next) /* { dg-warning "use of uninitialized value 'end'" } */
return;
}
|