1 /* Spurious uninitialized variable warnings. Slight variant on the
2 documented case, inspired by reg-stack.c:record_asm_reg_life. */
4 /* { dg-do compile } */
5 /* { dg-options "-Wuninitialized" } */
16 extern void use(struct foo *);
22 func(struct foo *list, int count)
26 struct foo **clob_list; /* { dg-bogus "clob_list" "uninitialized variable warning" } */
28 if(list[0].type == PARALLEL)
30 clob_list = __builtin_alloca(count * sizeof(struct foo *));
32 for(i = 1; i < count; i++)
34 if(list[i].type == CLOBBER)
35 clob_list[n_clobbers++] = &list[i];
39 for(i = 0; i < n_clobbers; i++)