1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -O2 -Wno-implicit" } */
3 /* { dg-require-effective-target ptr32plus } */
24 static unsigned int undef1
, undef2
, undef3
, undef4
, undef5
, undef6
;
25 static void *undefvp1
;
26 extern struct undefinfo undefinfo
;
32 for (i
= 0; i
< 2000; i
++)
35 external_function5 (((void *) 0), 0, (void *) &foo
);
40 undefinit2 (void *problemp
, unsigned long problem
)
47 for (u
= 0; u
< undef6
; u
++)
49 ret
= external_function1 (3 + u
* 10, 10);
52 external_function6 (0, 0, 0, problemp
+ problem
);
58 fn6 (struct undefinfo
*uip
, struct problem
*problem
)
61 if (external_function3 (((void *) 0), ((void *) 0), &amt
, 0, 0))
63 problem
->l1
= (unsigned long) undefvp1
;
64 problem
->l4
= uip
->l1
;
65 problem
->l3
= uip
->l2
;
72 struct problem problem
;
73 if (fn6 (&undefinfo
, &problem
))
79 if (undefinit2 ((void *) problem
.l1
, problem
.l3
* 4)) /* { dg-bogus "problem.l3" "uninitialized variable warning" } */
84 main (int argc
, char **argv
)
87 if (external_function (1))
89 if (external_function (1))
91 if (external_function (1))
94 getopt_long (argc
, argv
, ((void *) 0), ((void *) 0),
102 external_function (1);