1 /* Spurious uninitialized variable warnings.
2 This one inspired by java/class.c:build_utf8_ref. */
4 /* { dg-do compile } */
5 /* { dg-options "-O -Wuninitialized" } */
16 extern void *malloc(size_t);
21 #define APPEND(TREE, LAST, TYPE, VALUE) \
23 struct tree *tmp = malloc (sizeof (struct tree)); \
24 tmp->car = 0; tmp->cdr = 0; tmp->type = TYPE; \
34 make_something(int a
, int b
, int c
)
39 rv
= malloc (sizeof (struct tree
));
42 APPEND(rv
, field
, INTEGER_T
, a
); /* { dg-bogus "field" "uninitialized variable warning" } */
43 APPEND(rv
, field
, PTR_T
, b
);
44 APPEND(rv
, field
, INTEGER_T
, c
);